cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Apps and Installations

Have a question about a Dropbox app or installation? Reach out to the Dropbox Community and get solutions, help, and advice from members.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to stop autostart on Ubuntu

Unable to stop autostart on Ubuntu

Dinjay
Helpful | Level 6
Go to solution

I run Dropbox (v43.4.50) on Ubuntu (16.04.3). I have unticked the "Start Dropbox on system startup" option in Dropbox Preferences but dropbox still autostarts on boot.

 

Even if I manually untick or remove Dropbox as a startup program in the Ubuntu Startup Applications Preferences, Dropbox still adds itself back-in the next time Dropbox is run.

 

This problem only came up a month or two ago so it's likely to be a bug.

1 Accepted Solution

Accepted Solutions

Dinjay
Helpful | Level 6
Go to solution

JC from Dropbox Support provided instructions to resolve this issue by doing a full reinstall and re-sync and it worked for me.  The Start Dropbox on system startup option now works as expected and I can turn off autostart.

 

--------------------------------------------------------------

First, make sure you save and quit ALL programs that access files in the Dropbox folder.

Note: Please be sure to make a note or take a screenshot of any Selective Sync settings you may have applied as well as the location of your Dropbox folder (if not in the default location) prior to re-installing, as you will need to match these settings upon re-install. If you're using a headless version of Dropbox you can access the list of Selective Sync folders by running "dropbox exclude".

Depending on your OS and the package you used to perform the installation, you could have files in two different locations. I'm sending you instructions for both of the cases, so if some of the commands error out don't worry.

Run the following commands in your terminal:

dropbox stop
dropbox status # Should report "not running"
rm -rf ~/.dropbox-dist
rm -rf /var/lib/dropbox
rm -rf ~/.dropbox*
sudo apt-get remove nautilus-dropbox
sudo apt-get remove dropbox
rm /etc/apt/source.d/dropbox

Once you're done you have two options:

1) Install the Dropbox application with its graphical components using one of our packages. If you want to do that, download the correct package for your OS and architecture here:

https://www.dropbox.com/install?os=linux

Open your downloads folder and double click on the package file to start the installer.

When Dropbox has finished installing, please sign in and apply any Selective Sync settings you may have had prior to the reinstall and select the Dropbox folder location (if not in the default location) during the sign in process. Your account will take a few moments to reindex the files and sync any pending changes.

2) The second option is to run a headless version of Dropbox. This version will not have any of the menus or graphical components and can only be interacted with through the command line. To install this version do the following:

If your machine is 32-bit:

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -

If your machine is 64-bit:

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -

Next, run the Dropbox daemon from the newly created .dropbox-dist folder.

~/.dropbox-dist/dropboxd

When Dropbox has finished installing please sign in and apply any Selective Sync settings you may have had prior to the reinstall. Your account will take a few moments to reindex the files and sync any pending changes.

More installation and CLI information is also available here:

https://www.dropbox.com/install

Once that's done, please open the preferences of the application, (via right clicking the tray icon), and in the Accounts tab of preferences, untick "Start Dropbox on system Startup".

 

View solution in original post

23 Replies 23

Karina
Dropbox Staff
Go to solution

Hey @Dinjay thanks for your message and hope you're having a nice day! :slight_smile:

 

Normally, unchecking the Dropbox app as an automatic startup program should prevent Dropbox from starting up the next time you run your device. 

 

However, here's something you can try out if you haven't already: 

 

dropbox autostart [y/n]

 

Options:
→ n Dropbox will not start automatically at login. ←    

 

        ( y Dropbox will start automatically at login - which is the default )

This command may only work on Ubuntu 10.04 or higher (so, you should be good if you carry out this command). 

 

Give this a try and let me know how it works for you and if you're able to stop Dropbox's autostart upon system startup. Thanks in advance!




Karina
Moderator @ Dropbox
https://dropbox.com/support


Heart Did this post help you? If so please mark it for some Kudos below. 
:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.
:arrows_counterclockwise: Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

FrankLinux
New member | Level 2
Go to solution

Hello Dinjay,

I suggest you to choose the headless installation from Command Line and use the Python script attached here to control the daemon! In such a way, if your problem still happens, you can create a script to automatically execute the python and close Dropbox. The command is

./dropbox.py stop

Have a nice day!

Ross_S
Dropbox Staff
Go to solution
@FrankLinux beat me to it.
The script mentioned would be the best way.

Dinjay
Helpful | Level 6
Go to solution

Hi @

 

That command removed dropbox autostart (ie removed from Startup Applications) temporarily.

 

But if I run Dropbox again, it automatically added itself back on to autostart. This means that I would need to manually run that command each time after running Dropbox.

Dinjay
Helpful | Level 6
Go to solution

Hi @FrankLinux,

 

I strongly prefer to use the GUI.

 

This is likely to be a new bug so hopefully it will be fixed before too long.

 

Before using the headless version, I'd probably first try to lock down the autostart file (eg create a dummy dropbox.desktop with restricted permissions).

Ross_S
Dropbox Staff
Go to solution
Apologies, the auto-start box has recently disappeared and will reappear shortly (in the next version), potentially resolving your issue.

Dinjay
Helpful | Level 6
Go to solution
  Great to hear.

 

Just to clarify,  the "Start Dropbox on system startup" option is still there and it's possible to tick/untick it. The issue is that unticking it does not deactive Dropbox autostart from the Ubuntu Startup preferences. See image showing Dropbox startup unticked in the front and Ubuntu startup in the back showing the Dropbox link still active.

 

Dropbox pref in front and Ubuntu startup pref in backDropbox pref in front and Ubuntu startup pref in back

Kalico
Explorer | Level 4
Go to solution

Is this issue being worked on?  It is a real pain if one has their Dropbox folder on another partition, which does not automatically get mounted when Ubuntu starts.

 

I have the tick-box unticked in the preferences, but it still auto-starts every time I reboot.

Dinjay
Helpful | Level 6
Go to solution

The problem persists for me, so I hope someone's working on it!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Dinjay Helpful | Level 6
  • User avatar
    Kalico Explorer | Level 4
  • User avatar
    olav Helpful | Level 5
What do Dropbox user levels mean?