Results 1 to 5 of 5

Thread: separate app autoload for Gnome and KDE

  1. #1
    Join Date
    Nov 2006
    Location
    near Victoria, BC, Canada
    Beans
    189
    Distro
    Xubuntu 14.04 Trusty Tahr

    separate app autoload for Gnome and KDE

    I'm wondering if I can somehow separate the applications that start for KDE from those that start in a Gnome session? For example: Currently Gnome-Do starts for both KDE and Gnome, and I would like it to only start with Gnome. Incidently, when I check in KDE's autostart and session settings, Gnome-Do is not present (and not shown to be running - but starts at login and is in the process list).

  2. #2
    Join Date
    Jul 2007
    Beans
    70

    Re: separate app autoload for Gnome and KDE

    Goto ~/.config/autostart and edit with your favourite text editor gnome-do.desktop

    Add this line somewhere in the file:

    Code:
    OnlyShowIn=GNOME;
    This will make sure gnome-do only shows up in gnome. I'm looking for a more efficient way...but this works!

  3. #3
    Join Date
    May 2007
    Location
    STL, MO
    Beans
    1,283
    Distro
    Kubuntu Karmic Koala (testing)

    Re: separate app autoload for Gnome and KDE

    In KDE what happens a lot is session restore. When you exit KDE, it will remember what programs are running and autostart them next time. There seems to be a bug (been around for a long time) where programs will always get restored. This may be happening in KDE, but I don't think that Gnome does this by default. System Settings-->Advanced (tab)-->Session Manager, then "Start with an empty Session."

    Pritamps is probably right, but the KDE restore session may still occur unless you do what I wrote.

  4. #4
    Join Date
    Nov 2006
    Location
    near Victoria, BC, Canada
    Beans
    189
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: separate app autoload for Gnome and KDE

    Thanks for the fix pritamps!!

    Quote Originally Posted by pritamps View Post
    Goto ~/.config/autostart and edit with your favourite text editor gnome-do.desktop

    Add this line somewhere in the file:

    Code:
    OnlyShowIn=GNOME;
    This will make sure gnome-do only shows up in gnome. I'm looking for a more efficient way...but this works!

  5. #5
    Join Date
    Jul 2007
    Beans
    70

    Re: separate app autoload for Gnome and KDE

    Quote Originally Posted by jbrown96 View Post
    In KDE what happens a lot is session restore. When you exit KDE, it will remember what programs are running and autostart them next time. There seems to be a bug (been around for a long time) where programs will always get restored. This may be happening in KDE, but I don't think that Gnome does this by default. System Settings-->Advanced (tab)-->Session Manager, then "Start with an empty Session."

    Pritamps is probably right, but the KDE restore session may still occur unless you do what I wrote.
    That is true. I had to change that option as well.

    I found a nice way to change the option for multiple files:

    Code:
    echo OnlyShowIn=GNOME |tee -a FILELIST
    This will add the line to all the files in FILELIST (separated by a space)! You can even use wild-cards .... Very cool!

    You probably also want to do this for the files in /etc/xdg/autostart as well...That's an autostart directory as well. To do the above there, use

    Code:
    echo OnlyShowIn=GNOME |sudo tee -a FILELIST
    since the files there are not accessible without sudo

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
  •