Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question

marked as duplicate by Tigull, fossfreedom, Alvin Row, 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.

up vote 1 down vote accepted

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

share|improve this answer
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 – warl0ck Sep 30 '11 at 14:01

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