matanster Asked: 2015-12-15 11:57:21 +0800 CST2015-12-15 11:57:21 +0800 CST 2015-12-15 11:57:21 +0800 CST 恢复启动器图标使用的命令[重复] 772 如何回溯到统一启动器针对给定启动器图标运行的确切命令?至少在 14.04 中,悬停(或右键单击)启动栏上的图标不提供获取该信息的选项。 unity 1 个回答 Voted Best Answer dadexix86 2015-12-15T12:05:41+08:002015-12-15T12:05:41+08:00 您必须在~/.local/share/applications/和/或中查找桌面文件/usr/share/applications/,打开它然后查找零件Exec=。 例如,如果你想知道启动 gedit 的命令 $ cat /usr/share/applications/gedit.desktop [Desktop Entry] Name=gedit GenericName=Text Editor Comment=Edit text files Exec=gedit %U Terminal=false Type=Application StartupNotify=true MimeType=text/plain; Icon=accessories-text-editor Categories=GNOME;GTK;Utility;TextEditor; X-GNOME-DocPath=gedit/gedit.xml X-GNOME-FullName=Text Editor X-GNOME-Bugzilla-Bugzilla=GNOME X-GNOME-Bugzilla-Product=gedit X-GNOME-Bugzilla-Component=general X-GNOME-Bugzilla-Version=3.10.4 X-GNOME-Bugzilla-ExtraInfoScript=/usr/share/gedit/gedit-bugreport Actions=Window;Document; Keywords=Text;Editor;Plaintext;Write; X-Ubuntu-Gettext-Domain=gedit [Desktop Action Window] Name=Open a New Window Exec=gedit --new-window OnlyShowIn=Unity; [Desktop Action Document] Name=Open a New Document Exec=gedit --new-document OnlyShowIn=Unity; 你对。。。感兴趣Exec=gedit %U
您必须在
~/.local/share/applications/
和/或中查找桌面文件/usr/share/applications/
,打开它然后查找零件Exec=
。例如,如果你想知道启动 gedit 的命令
你对。。。感兴趣
Exec=gedit %U