if you want to create a desktop shortcut for an application or simplely a shell script, you can follow this:
- crate a file with
.desktop
extension, for examplemain.desktop
. -
add the following content to the file:
[Desktop Entry] Version=1.0 Type=Application Name=白犀牛车辆标定 Comment=This is a shortcut to calibration shell script Exec=gnome-terminal -- bash -c "bd; exec bash" Icon=/opt/rino-calibration/vehicle-inspection.png Terminal=true
- save the file to
~/Desktop/
directory. -
use this command to make the file executable:
gio set ~/Desktop/main.desktop metadata::trusted true
- set an icon
move your icon image to the directory which set in the
Icon
field.