Ubuntu – Eclipse Luna displaying regular scrollbars instead of overlay scrollbars – how to change

eclipsegtkguioverlay-scrollbarsunity

I've recently switched to using the new Eclipse Luna, but for some reason it stopped displaying the overlay scrollbars, and now shows the regular ones that are in e.g. Firefox. Kepler had them.

Since Eclipse UI is cluttered already, I would like to turn them back on, how can that be done?

Best Answer

If you're using Ubuntu 12.04 or 14.04, you need to start Eclipse with an env var to force overlay scrollbars:

env LIBOVERLAY_SCROLLBAR=1 eclipse

As I'm using a downloaded Eclipse (and not the one provided by apt), I've created a Eclipse.desktop file (under ~/.local/share/applications/) with the following content (remember to replace <path_to_eclipse_folder> by your path to Eclipse:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Name=Eclipse
Comment=Integrated IDE
Icon=eclipse.png
Exec=env LIBOVERLAY_SCROLLBAR=1 /<path_to_eclipse_folder>/eclipse
Categories=Application;Development;Java;PHP;IDE;
Type=Application
Terminal=false