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?
To add the Dropbox icon to
Wingpanel I used the script "Dropbox for elementary OS", available here.
This script, designed for elementary OS, installs the latest version of Dropbox and integrates it with WingPanel.
Before you install
You need to install
sudo apt-get install git
and uninstall any previous version of Dropbox on your system:
sudo apt-get remove dropbox*
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.
git clone https://github.com/zant95/elementary-dropbox /tmp/elementary-dropbox bash /tmp/elementary-dropbox/uninstall.sh
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 !
ATTENTION: To get the legacy indicators (like Dropbox) displayed, you will need to install elementary-indicators.