Excerpts from Magnus Therning's message of Wed Jul 29 17:57:24 -0400 2009: > I'm currently using NetworkManager's ability to run scripts once the > network is up[1], but that seems to only be on a system level. Is > there some way of also running scripts/programs as the logged in user > once network is up? > > Especially I want to start dropbox only when the network is available. > It seems completely incapable of coping with a network that appears > after it's been started. > > /M > > [1]: I've put a short script in /etc/NetworkManager/dispatcher.d/ that > will start and stop openntpd when the network goes up and down. Well, as a slight hack, consider using sudo -u or similar to run a command as a specified user. You may also be interested in setting DISPLAY=:0 if its a graphical program that requires X. -- Andrei Thorp, Developer: Xandros Corp. (http://www.xandros.com)