Ubuntu 11.10, Eclipse, and overlay scrollbars

I’ve been having some problems with Eclipse on Ubuntu 11.10 with regards to the new scrollbars. Specifically, they just don’t show up. It seems I’m not the only one, and there is a bug report for it already. Naturally, I started Googling away, but found very little useful information and possible workarounds. A comment on this post led me to something usable. Here’s what you do:

  • Open up the Eclipse start-up script in a text editor. I did this with “sudo gedit /usr/bin/eclipse”
  • A few lines from the top you should see:
    export GDK_NATIVE_WINDOWS=true

    Comment this line out by placing a # at the front. (thanks to the comment below from @ModulosDePago)

    Add in the following lines below it:

    export UBUNTU_MENUPROXY=0 export LIBOVERLAY_SCROLLBAR=0
  • Save and exit.

Now when you start up Eclipse it should show the old style scrollbars. They aren’t as fancy as the new ones, but at least they work.

The overlay scrollbars should now be working as normally. If you still have issues, try the struck out solution I have posted above.

[Sidenote]: I did have some trouble getting the Eclipse shortcut back on the Unity sidebar, but a restart fixed that issue.

About these ads
This entry was posted in General Computing, How To and tagged , , , , . Bookmark the permalink.

12 Responses to Ubuntu 11.10, Eclipse, and overlay scrollbars

  1. Thx for your tip, but I found an easier way to solve the problem and have the new scrollbars.

    Instead of adding the lines you say, you should just comment the line:

    export GDK_NATIVE_WINDOWS=true

  2. Nanda says:

    Thanks for the tip, this was really annoying…

  3. Dave says:

    Thanks a lot for this!
    Worked perfectly.

  4. Carlos Filho says:

    Nice, works fine for me! Thank you.

  5. Paul says:

    Nice work thanks!

  6. Tasos says:

    It worked. Thanks!

  7. Norm says:

    Perfect! Thanks for sharing!

  8. Mike Clark says:

    Excellent tip. Worked great. Thanks a lot.

  9. cinan says:

    Reblogged this on Cinan's Free (as in "free speech") Blog and commented:
    Ako v Eclipse (a inych Java aplikaciach) rozchodit overlay scrollbar

  10. Estevan says:

    THANKS!!!!

    Worked just fine!

    Besides the problem, my mouse scroll wasn’t working, so, using Eclipse was the quickiest way for me to get stressed! XD

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