Linux Gnome中添加快捷启动

1 创建.desktop文件

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
[Desktop Entry]
Type=Application
Name=YourAppName
Exec=/path/to/your/YourAppName.AppImage (也可以是其他binary)
Icon=/path/to/your/icon.png
Categories=Utility;
Terminal=false
[Desktop Entry] Type=Application Name=YourAppName Exec=/path/to/your/YourAppName.AppImage (也可以是其他binary) Icon=/path/to/your/icon.png Categories=Utility; Terminal=false
[Desktop Entry]
Type=Application
Name=YourAppName
Exec=/path/to/your/YourAppName.AppImage (也可以是其他binary)
Icon=/path/to/your/icon.png
Categories=Utility;
Terminal=false

2 移动和权限

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo mv ~/YourAppName.desktop /usr/share/applications/
sudo chown root:root /usr/share/applications/YourAppName.desktop
sudo mv ~/YourAppName.desktop /usr/share/applications/ sudo chown root:root /usr/share/applications/YourAppName.desktop
sudo mv ~/YourAppName.desktop /usr/share/applications/
sudo chown root:root /usr/share/applications/YourAppName.desktop

然后在Launcher中就有了,也可以根据需求固定在Dock上

 

Leave a Reply

Your email address will not be published. Required fields are marked *