You are not logged in.
Hi,
I'm using dropbox and wicd. I'd like dropbox to be started only after a connection is up, so I have created the following script in /etc/wicd/scripts/postconnect/ directory
#!/bin/bash
LANG=$LOCALE
su -c '/usr/bin/dropboxd &' my_user_name
(off course I created another one in /predisconnect to stop it)
Dropbox is started (and files synced to my pc) but tray icon and desktop notifications aren't shown. If I open a terminal and run dropboxd I get both tray icon and notifications.
I'm a bit confused. Any suggestion?
Last edited by DarioP (2011-06-10 14:15:58)
Offline
When started by wicd, dropbox does not know which X display to use. Try using:
#!/bin/bash
LANG=$LOCALE
su -c 'DISPLAY=:0 /usr/bin/dropboxd &' my_user_name
Steven [ web : git ]
GPG: 327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com
Offline
That worked!
Thank you very much!
Offline