PDA

View Full Version : [ubuntu] How to open a folder on login?



freemant
July 21st, 2010, 07:12 AM
Hi,

I'd like to open a folder automatically after logging in. The folder is a samba shared folder but it shouldn't matter. I've tried launching nautilus as a "startup application", but then Ubuntu will enter some kind of loop and pop up lots of window saying "starting file manager".

Any idea to achieve that? I am using Ubuntu 10.04.

Thanks!

munkyeetr
July 21st, 2010, 07:43 AM
This may help you: https://wiki.ubuntu.com/CustomXSession

freemant
July 21st, 2010, 10:42 AM
Thanks! I tried using the following as .xinitrc but it isn't working:

#!/usr/bin/env bash
netuse.sh &
exec gnome-session

where netuse.sh will launch nautilus to open the folder.

Any idea?

freemant
July 21st, 2010, 11:06 AM
In fact, it seems that the .xinitrc and .xsession files are ignored by gnome.