Ubuntu9.10下eclipse的修正

字体大小: 中小 标准 ->行高大小: 标准

Ubuntu 9.10来临了,昨天迫不及待的装好了,然后把一些常用软件挪了过去,猛然发现eclipse的一些按钮不好使了,网上查之,找到原因便上手修正。

eclipse目录: /opt/eclipse

$ sudo vi eclipse-patch

  1. #!/bin/bash    export GDK_NATIVE_WINDOWS=true  
  2. /opt/eclipse/eclipse  
  1. #!/bin/bash   
  2. export GDK_NATIVE_WINDOWS=true   
  3. /opt/eclipse/eclipse  

$ sudo chmod a+x eclipse-patch

新建启动器 ->

  1. [Desktop Entry]   Encoding=UTF-8   
  2. Version=1.0    Type=Application  
  3. Terminal=false   Icon[zh_CN]=gnome-panel-launcher  
  4. Name[zh_CN]=eclipse   Exec=/opt/eclipse/eclipse-patch  
  5. Name=eclipse   Icon=/opt/eclipse/icon.xpm  

 

  1. [Desktop Entry]   
  2. Encoding=UTF-8  
  3. Version=1.0  
  4. Type=Application   
  5. Terminal=false   
  6. Icon[zh_CN]=gnome-panel-launcher   
  7. Name[zh_CN]=eclipse   
  8. Exec=/opt/eclipse/eclipse-patch   
  9. Name=eclipse   
  10. Icon=/opt/eclipse/icon.xpm  

通过将路径设置为/opt/eclipse/eclipse-patch,便为eclipse的执行环境添加了“GDK_NATIVE_WINDOWS=true“,如此搞定。

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/50661.html