Ubuntu桌面配置环境
applications.desktop
- /usr/share/applications
- sudo cp xxx.desktop /usr/share/applications
命令执行
需要将程序放入环境变量
[Desktop Entry]
Categories=Development;
Comment=Clash Nyanpasu! (∠・ω< )⌒☆
Exec=clash-nyanpasu
Icon=clash-nyanpasu
Name=Clash Nyanpasu
Terminal=false
Type=Application
路径执行
mv sublime_text /opt/ # 默认放入opt目录,软件迁移时作为最后步骤
chmod u+x /opt/sublime_text # 赋予执行路径可执行权限
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=new-window;new-file;
[Desktop Action new-window]
Name=New Window
Exec=/opt/sublime_text/sublime_text --launch-or-new-window
OnlyShowIn=Unity;
[Desktop Action new-file]
Name=New File
Exec=/opt/sublime_text/sublime_text --command new_file
OnlyShowIn=Unity;
appimage
通用的软件包格式。通过将软件打包在 AppImage 中,开发人员只需提供一个文件即可的
已打包执行程序
- 作为压缩映像,包含运行所需软件所需的所有依赖项和库。程序的封装化,类似于软件上的
docker
chmod u+x .Appimage # 赋予可执行权限

浙公网安备 33010602011771号