You are not logged in.

#1 2011-06-09 15:55:36

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

Dropbox & wicd [solved]

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

#2 2011-06-09 17:18:12

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: Dropbox & wicd [solved]

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

#3 2011-06-10 14:15:26

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

Re: Dropbox & wicd [solved]

That worked! big_smile

Thank you very much!

Offline

Board footer

Powered by FluxBB