Possible Duplicate:
How To Make Program Autostart only In GNOME

I set up my Gnome session to use tint2 as a window list panel, but I don't need it when using Xfce, therefore I'd like to have tint2 start only under "Classic Ubuntu" session. Is this possible? Editing the Startup Applications has effect on both sessions. Thanks for your help!

marked as duplicate by Tigull, fossfreedom, Isaiah, RolandiXor, Bruno Pereira Jan 1 '12 at 12:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Yes , first place anything autostart file in ~/.config/autostart , and for each *.desktop file need only in GNOME , put a line like this into that file:


Which means this application will only start in Gnome session.

If you take a look in /etc/xdg/autostart for specific application , thw following image is pretty clear on the basis of its structure:

enter image description here

  • Thanks a lot! As far as you know, is there a way to implement this option to hide desktop launchers in different environments? I tried to appen OnlyShowIn=xy at the bottom of the .desktop files in the Desktop folders but the launchers still show in each session. I'll start a separate question if you don't know. – Tigull Sep 30 '11 at 13:06
  • some session manager will remember running applications , thus you may need to clear its saved sessions , for xfce , remove ~/.cache/session , for Gnome , i'm not sure – daisy Sep 30 '11 at 14:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.