我是Lubuntu的新手,所以我下载了LightTable之类的编辑器,并且仅在命令行中使用此命令运行
./LightTable
那么如何在菜单上添加此软件?
您可以例如:检查文件夹中的内容:
ls -la /usr/share/applications/
查找其他文本编辑器的类似条目,例如:
# cat /usr/share/applications/sublime.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Sublime Text
Comment=Sublime Text 2
Exec=sublime_text
Icon=/opt/sublime/Icon/256x256/sublime_text.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Development;TextEditor;
根据您的要求复制并修复内容,例如:
cp -p /usr/share/applications/sublime.desktop /usr/share/applications/lighttable.desktop
例如。:
# cat /usr/share/applications/lighttable.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Light Table
Comment=Light Table
Exec=/path/to/your/executable/script/LightTable
Icon=/path/to/your/icon/Light_Table.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Development;TextEditor;
注意:确保您的GUI用户对LightTable
脚本具有执行权限
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句