Fix Dropbox Indicator Menu Not Working In Ubuntu 17.04 Zesty Zapus (Unity)

The Dropbox indicator is broken in Ubuntu 17.04 Zesty Zapus (currently in beta): the menu doesn’t work and Dropbox uses a different icon, probably because it tries to use the tray instead of the indicator.

Dropbox indicator menu bug Ubuntu 17.04 Zesty Zapus

This is caused by the fact that the XDG_CURRENT_DESKTOP environment variable was changed from “Unity” to “Unity:Unity7” for Ubuntu 17.04.

Until this is fixed in Dropbox, here’s a quick fix / workaround. To get the Dropbox indicator to work in Ubuntu 17.04 Zesty Zapus (with Unity), you’ll need to launch Dropbox with “env XDG_CURRENT_DESKTOP=Unity”, like this:

dropbox stop
env XDG_CURRENT_DESKTOP=Unity dropbox start -i

To get this to work automatically is a bit tricky because Dropbox overwrites any modifications to its autostart file.

Here are all the steps required to fix the Dropbox indicator menu in Ubuntu 17.04 Zesty Zapus so that Dropbox works when you login / when launched from the menu:
  • rename the Dropbox autostart file from ~/.config/autostart and edit it, changing the “Exec” line to “Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start -i”;
  • disable the built-in Dropbox autostart because it automatically creates an autostart file. This can be done using the “dropbox autostart n” command;
  • optional: if you want to also fix the Dropbox menu entry (this isn’t used in most cases since Dropbox starts automatically), copy the Dropbox desktop file from /usr/share/applications/ to ~/.local/share/applications/, so it’s not overwritten by updates, and change the “Exec” line to “Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start -i”

To do all this from a terminal, you can use the following commands:

cp ~/.config/autostart/dropbox.desktop ~/.config/autostart/start_dropbox.desktop
sed -i 's/^Exec=.*/Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start -i/' ~/.config/autostart/start_dropbox.desktop
dropbox autostart n
mkdir -p ~/.local/share/applications/
cp /usr/share/applications/dropbox.desktop ~/.local/share/applications/
sed -i 's/^Exec=.*/Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start -i/' ~/.local/share/applications/dropbox.desktop

And finally, restart the session (logout/login). The Dropbox indicator menu should now work and it should use the correct icon.

via Dropbox forums

from Web Upd8 – Ubuntu / Linux blog http://ift.tt/2mPDdY1
via IFTTT

via Blogger http://ift.tt/2nZLybS

Advertisements

About ishubhamsingh

Hello TechGeeks!! I am Shubham Singh -a student,a mistakemaker,a learner,a TechGeek like you,who wants to share all that i know about softwares,cracks,keygens and general computer tweaks & tricks with you through this blog.

Posted on March 21, 2017, in IFTTT, Web Upd8 - Ubuntu / Linux blog and tagged , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: