方法是在桌面新建一個空白文檔,輸入一下內容: java
[Desktop Entry] Categories=Development; Comment[zh_CN]= Comment= Exec=/usr/local/java/eclipse/eclipse GenericName[zh_CN]=IDE GenericName=IDE Icon=/usr/local/java/eclipse/icon.xpm MimeType= Name[zh_CN]=eclipse Name=eclipse Path= StartupNotify=true Terminal=false Type=Application X-DBUS-ServiceName= X-DBUS-StartupType= X-KDE-SubstituteUID=false X-KDE-Username=owen Exec=env UBUNTU_MENUPROXY= /usr/local/java/eclipse/eclipse其中/usr/local/java/eclipse是安裝路徑,關鍵的是這條語句
Exec=env UBUNTU_MENUPROXY= /usr/local/java/eclipse/eclipse
關閉,而後點擊桌面圖標打開,菜單欄能夠實現下拉了。
eclipse