You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Dinjay's avatar
Dinjay
Helpful | Level 6
7 years ago

Unable to stop autostart on Ubuntu

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.

  • 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".

     

  • Karina's avatar
    Karina
    Icon for Dropbox Staff rankDropbox Staff

    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!

    • Dinjay's avatar
      Dinjay
      Helpful | Level 6

      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.

  • FrankLinux's avatar
    FrankLinux
    New member | Level 2

    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!

    • Dinjay's avatar
      Dinjay
      Helpful | Level 6

      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's avatar
        Ross_S
        Icon for Dropbox Staff rankDropbox Staff
        Apologies, the auto-start box has recently disappeared and will reappear shortly (in the next version), potentially resolving your issue.
  • Dinjay's avatar
    Dinjay
    Helpful | Level 6

    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".

     

About 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.

Need more support

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!