Search This Blog

eclipse on Ubuntu Linux: annoying scroll bars issue

To fix the scoll bars issues in Eclipse on Ubuntu Linux (Unity):
  1. Create a wrapper script to start eclipse (Note replace /opt/eclipse to the location where your eclipse is installed):
    sudo vi /usr/local/bin/eclipse
    #!/bin/bash
    # fix the menu issue
    export UBUNTU_MENUPROXY=0
    
    # fix the scroll bar issue
    export LIBOVERLAY_SCROLLBAR=0
    
    /opt/eclipse/eclipse
    
    you need to set the file mode to be executable:
    sudo chmod +x /usr/local/bin/eclipse
  2. Create a desktop shortcut/launcher:
    vi ~/Desktop/Eclipse.desktop
    #!/usr/bin/env xdg-open
    
    [Desktop Entry]
    Version=1.0
    Type=Application
    Terminal=false
    Icon[en_US]=/opt/eclipse/icon.xpm
    Name[en_US]=eclipse
    Exec=/usr/local/bin/eclipse
    Name=eclipse
    Icon=/opt/eclipse/icon.xpm
    
  3. Now you can either click the Eclipse icon on your desktop or type 'eclipse' in a Terminal window to start eclipse

No comments:

Post a Comment