Page 1 of 1

(Solved) Dropbox delay at startup solution needed.

Posted: 23. Feb 2012, 11:54
by globetrotterdk
I am using Salix LXDE 13.37 and need a solution to delay when Dropbox starts, as it often starts before Wicd has found my network connection. I have tried adding the following to the .desktop file placed in the ,config autostart directory, but Dropbox refuses to start.

Code: Select all

Exec=sleep 5 && /opt/dropbox/dropboxd &
What am I doing wrong?

Re: Dropbox delay at startup solution needed.

Posted: 23. Feb 2012, 14:20
by gapan
The exec line only accepts one app to run. You can't do what you're trying to do directly. You could create a script, say /usr/local/bin/run_dropbox.sh like this:

Code: Select all

#!/bin/sh
sleep 5 && /opt/dropbox/dropboxd
and then point the exec line to that script.

Re: Dropbox delay at startup solution needed.

Posted: 23. Feb 2012, 15:15
by globetrotterdk
That solved it. Many thanks.