[solved] Autostarting apps only in xfce session

08-13  Source: Network gathering  Views:0 

Advertisement
Been a problem for me when playing around with multiple DEs that they all parse the same autostart folder. I don't need fusion-icon or nm-applet to start up when I boot into KDE, but I do need them when booting into xfce.
Is there a way I can set apps to autostart in xfce alone but not in other Desktop environments?
Last edited by b9anders (2012-03-15 19:15:29)
spoke too soon. It only launched the first application listed in the script. Here's what I made:
$ cat .xfcestart.sh
#!/bin/bash
if [ "$DESKTOP_SESSION" = "Xfce Session" ]; then
/usr/bin/fusion-icon && /usr/bin/nm-applet && /usr/bin/xfce4-clipman && /usr/bin/xfce4-power-manager && /usr/bin/avant-window-navigator && /usr/bin/liferea && /usr/bin/xfce4-volumed
fi
Only fusion icon gets loaded with this.
Related articles