I would like to have an icon for Dropbox in Wingpanel (preferably one that matches the style of the default icons there) and have it display the current status (updated, synchronizing, offline).

What's the best/easiest way to achieve this?

  • I believe this should be made into two separate questions. I can answer the part about Wingpanel, but I don't know how to integrate the app with Files. – Gabriel Jun 30 '15 at 19:17
  • 1
    @Gabriel I believe Dropbox integration is a single issue, conceptually speaking. Besides, it's perfectly fine if you can only offer a partial answer -- that already helps :) – waldyrious Jun 30 '15 at 19:18
  • 1
    @Gabriel partial answers are fine if there are 2 parts to it :) – user3 Jun 30 '15 at 19:20
  • 1
    Update: I split the question in two, per meta.elementaryos.stackexchange.com/q/6/84, and accepted the current answer. The second part was moved here: elementaryos.stackexchange.com/q/256/84 – waldyrious Jul 5 '15 at 11:15
up vote 13 down vote accepted

To add the Dropbox icon to Wingpanel I used the script "Dropbox for elementary OS", available here.

Instructions

This script, designed for elementary OS, installs the latest version of Dropbox and integrates it with WingPanel.

System tray icon preview

Before you install

You need to install git with:

sudo apt-get install git

and uninstall any previous version of Dropbox on your system:

sudo apt-get remove dropbox*

Install

git clone https://github.com/zant95/elementary-dropbox /tmp/elementary-dropbox
bash /tmp/elementary-dropbox/install.sh

Dropbox will auto-update when a new version is available.

Uninstall

git clone https://github.com/zant95/elementary-dropbox /tmp/elementary-dropbox
bash /tmp/elementary-dropbox/uninstall.sh
  • Thanks for the answer! Does removing dropbox delete the files in it, or can I leave the directory for the script to reuse? – waldyrious Jun 30 '15 at 19:26
  • You mean if removing Dropbox will remove your personal files? Absolutely not, only the files pertaining to the app will be removed. – Gabriel Jun 30 '15 at 19:27
  • Thanks for the clarification. It wasn't much of a concern, since the files would still live on dropbox.com and my other machines, but it would be wasteful to delete the files and then download them again once the script reinstalled dropbox. – waldyrious Jun 30 '15 at 19:30
  • @waldyrious your files will never be removed, but re-installing Dropbox means it will take it some time to re-index all your files. That's just a check to see if what's in their database matches what you have on your system, it will not have to download/upload all your files again. – Gabriel Jun 30 '15 at 19:32
  • 1
    @orschiro I clean the cache of my computer, and try again the tutorial dowloading everything and work – Revod Oct 23 '15 at 14:44

There's no point of running that script (that downloads Dropbox again, plus another time for the executable).

Just unset the dropbox application from the startup applications (Parameters=> Applications => Startup)
And then create a new startup application with these instructions

env XDG_CURRENT_DESKTOP=Unity QT_STYLE_OVERRIDE='' dropbox start

You will get a nice dropbox icon ! ;-)

WATCH OUT for the single quotes !

  • This works perfectly! Thank you. – ivant Dec 17 '16 at 20:37
  • Works for me, Elementary OS Loki. – swt83 Jul 2 '17 at 16:28
  • Works on Elementary OS Juno too – Patrick van Efferen Oct 27 at 13:47

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.