(Solved) Dropbox delay at startup solution needed.

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

(Solved) Dropbox delay at startup solution needed.

Post 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?
Last edited by globetrotterdk on 23. Feb 2012, 15:15, edited 1 time in total.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Dropbox delay at startup solution needed.

Post 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.
Image
Image
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Dropbox delay at startup solution needed.

Post by globetrotterdk »

That solved it. Many thanks.
Military justice is to justice what military music is to music. - Groucho Marx
Post Reply