Ubuntu9.10下eclipse的修正

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

eclipse目录: /opt/eclipse

$ sudo vi eclipse-patch

#!/bin/bash
export GDK_NATIVE_WINDOWS=true
/opt/eclipse/eclipse
#!/bin/bash
export GDK_NATIVE_WINDOWS=true
/opt/eclipse/eclipse
$ sudo chmod a+x eclipse-patch

新建启动器 ->

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

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Icon[zh_CN]=gnome-panel-launcher
Name[zh_CN]=eclipse
Exec=/opt/eclipse/eclipse-patch
Name=eclipse
Icon=/opt/eclipse/icon.xpm
通过将路径设置为/opt/eclipse/eclipse-patch,便为eclipse的执行环境添加了“GDK_NATIVE_WINDOWS=true“,如此搞定。

新建一个文件

sh -c "export GDK_NATIVE_WINDOWS=true; exec /usr/eclipse/eclipse"

你可能感兴趣的:(eclipse)