Take the 2-minute tour ×

I would like to have an application (most likely AWN or Docky) start only on XFCE, and not on KDE or Unity/GNOME. Is this possible? If so, how would I go about doing that?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Write the following script, replacing launch_app with the command that launches the application you want to launch at session start.

if [ "$DESKTOP_SESSION" = "xfce" ]; then

Give the script executable privileges with chmod +x, then tell your autostart configuration tool (not sure what XFCE uses) to use that script.

Should work.

share|improve this answer
add comment

Your Answer


