Results 1 to 10 of 10

Thread: Running GUI programs in the background

  1. #1
    Join Date
    Aug 2011
    Location
    Southampton
    Beans
    96
    Distro
    Ubuntu 13.04 Raring Ringtail

    Running GUI programs in the background

    Hi

    I know that there are various ways of running programs from the terminal "in the background" - i.e. so that they never notify of what they are doing, only notify you in case of an error, only give you the output etc.

    I was wondering if there was a way to do such things with a program that is operated via a GUI. My understanding is that it won't be, but I thought I would check in case.

    In particular, I have a program to change wallpapers, and ideally I would have it start at login, and never see it unless it is doing stuff, in which case a notification is fine. So it would operate exactly as Ubuntu One, for example, can/does do for me.

    Thanks

  2. #2
    Join Date
    Apr 2008
    Beans
    490
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Running GUI programs in the background

    Which program are you trying to run?
    |

  3. #3
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    4,303
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Running GUI programs in the background

    Well, whenever you add a program to the startup applications list, it creates a .desktop file in the folder /home/username/.config/autostart.
    You can gedit the file, and usually the file has a line that say nodisplay=false(meaning, yes display), try changing it to true and see what happens.

  4. #4
    Join Date
    Aug 2011
    Location
    Southampton
    Beans
    96
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Running GUI programs in the background

    Quote Originally Posted by spikoley View Post
    Which program are you trying to run?
    The program is called wallch.

    I have changed to autostart file, will report back when it has been restarted

    Thanks

  5. #5
    Join Date
    Apr 2008
    Beans
    490
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Running GUI programs in the background

    I was thinking on the same lines of deadflowr, but I wanted to try it before suggesting it. Well... I tried it and it works. It looks like the Hidden=true is the mime type that controls the display of an application. I tested it with NoDisplay=true and it did not work.

    Just change it to Hidden=true and you should be good to go!

    /home/UserName/.config/autostart/wallch.desktop

    Code:
    [Desktop Entry]
    Type=Application
    Exec=/usr/bin/wallch
    Hidden=true
    NoDisplay=true
    X-GNOME-Autostart-enabled=true
    Name[en_US]=Wallch
    Name=Wallch
    Comment[en_US]=Wallch Wallpaper Changer
    Comment=Wallch Wallpaper Changer
    Last edited by spikoley; June 13th, 2012 at 07:14 AM.
    |

  6. #6
    Join Date
    Aug 2011
    Location
    Southampton
    Beans
    96
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Running GUI programs in the background

    Quote Originally Posted by spikoley View Post
    I was thinking on the same lines of deadflowr, but I wanted to try it before suggesting it. Well... I tried it and it works. It looks like the Hidden=true is the mime type that controls the display of an application. I tested it with NoDisplay=true and it did not work.

    Just change it to Hidden=true and you should be good to go!

    /home/UserName/.config/autostart/wallch.desktop

    Code:
    [Desktop Entry]
    Type=Application
    Exec=/usr/bin/wallch
    Hidden=true
    NoDisplay=true
    X-GNOME-Autostart-enabled=true
    Name[en_US]=Wallch
    Name=Wallch
    Comment[en_US]=Wallch Wallpaper Changer
    Comment=Wallch Wallpaper Changer

    Brilliant, thank you very much

    Do you know/think that this would be the case for most programs?

  7. #7
    Join Date
    Apr 2008
    Beans
    490
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Running GUI programs in the background

    Quote Originally Posted by joetait View Post
    Brilliant, thank you very much

    Do you know/think that this would be the case for most programs?
    I do not know, but I think this will work with most programs. It is the first time I have ever messed with it.

    Make sure you go to Thread Tools and mark this thread as Solved.
    |

  8. #8
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,702
    Distro
    Ubuntu Development Release

    Re: Running GUI programs in the background

    Hey! Hold on a minute
    Wallch, on its Preferences window, under Startup, has options so as to start on startup without showing up!

    I can help, just make it a bit clear what you need to do (i am one of the developers)
    Website

    Wallch (Wallpaper Changer): Sourceforge | Launchpad

  9. #9
    Join Date
    Aug 2011
    Location
    Southampton
    Beans
    96
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Running GUI programs in the background

    Thanks very much - I don't know why I missed this before. Should the time lapse before changing be the same as whatever it was left as last log in?

  10. #10
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,702
    Distro
    Ubuntu Development Release

    Re: Running GUI programs in the background

    Quote Originally Posted by joetait View Post
    Thanks very much - I don't know why I missed this before. Should the time lapse before changing be the same as whatever it was left as last log in?
    The timeout will be the same as the last time you closed wallch!
    Website

    Wallch (Wallpaper Changer): Sourceforge | Launchpad

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •