Most ideal way to autostart processes

Mario Limonciello superm1 at
Thu Sep 27 15:57:30 UTC 2007

Hi guys,

I'm leading the Mythbuntu effort, and for our next alpha we are
switching over to Xfce for our base.  We were previously doing an
openbox/feh/idesk method, but Xfce is much prettier.

So in our migration over, there were a few items that I wanted to iron
out the proper way to do things.

= Autostarting of processes. =
== Gnome Volume Manager ==
We were previously using gnome-volume-manager for automounting a few
things when necessary.  I understand Thunar can do this instead.  Does
it need to be started, or is that handled via the startxfce4 script?

== Gnome Screensaver ==
I saw in my ~/.xsession-errors that there were attempts at xscreensaver
starting, but i didn't see any references to gnome-screensaver.  It's
listed in apt-cache rdepends on xubuntu-desktop however.  How does this
get started?
It's already in our dependencies, and i'll get to our old method of
starting things at the end of the mail.

== Network Manager ==
We wanted to use network-manager-gnome for providing wireless
functionality to those that wanted it.  We added it to
/etc/xdg/mythbuntu/autostart (The XDG directory that we are starting
things with is /etc/xdg/mythbuntu).  This works out as expected, but if
the user has an option to save the session checked, more of these
processes are started every time around.  Any way to avoid that?

== Smaller Utilities ==
Our old session script started things like nvidia-settings -l and irexec
-d when certain conditions were met.  Any other nice way that this
should be done?

= Current login script =
Currently, this is the session script that is used when someone chooses
the 'Mythbuntu' session.

#Mythbuntu Install & Settings Session
# Copyright © 2007  Mario Limonciello

#Set the background to black
xsetroot -solid black

#Start screensaver
if [ -x /usr/bin/gnome-screensaver ]; then

#Mythbuntu live configuration
if [ -x /usr/bin/mythbuntu-startup ]; then
        gksudo "mythbuntu-startup --load"

#Start window manager
export XDG_CONFIG_DIRS=/etc/xdg/mythbuntu/
export XDG_DATA_DIRS=/etc/xdg/mythbuntu/
exec startxfce4

Any recommendations of what should be done instead then?

Mario Limonciello
superm1 at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the xubuntu-devel mailing list