Skip to content

Instantly share code, notes, and snippets.

@erkattak
Created November 1, 2016 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erkattak/41f2eca8e389be69b6e003516ba0cc9d to your computer and use it in GitHub Desktop.
Save erkattak/41f2eca8e389be69b6e003516ba0cc9d to your computer and use it in GitHub Desktop.
Elementary OS / Dropbox Icon

Getting Dropbox to use an icon in Elementary Luna

  1. Save start-dropbox.sh to a directory.

  2. Ensure start-dropbox.sh is executable.

  3. Place dropbox-better.desktop in ~/.config/autostart.

  4. Ensure Exec= line of dropbox-better.desktop is an absolute path to wherever you placed start-dropbox.sh.

  5. Go in to System Settings > Applications > Startup and turn on Dropbox (Better)

[Desktop Entry]
Name=Dropbox (Better)
GenericName=File Synchronizer
Comment=Sync your files across computers and to the web
Exec=/absolute/path/to/start-dropbox.sh
Terminal=false
Type=Application
Icon=dropbox
Categories=Network;FileTransfer;
StartupNotify=false
X-GNOME-Autostart-enabled=true
#!/bin/bash
# first, stop dropbox if it's running
while dropbox running; do
sleep 1
done
dropbox stop &>/dev/null
# then, start it properly
QT_STYLE_OVERRIDE="" XDG_CURRENT_DESKTOP=Unity dropbox start -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment