Linux desktop shortcut and icon from install

前端 未结 3 940
春和景丽
春和景丽 2021-02-06 11:01

What do I need to add to my .spec file to create the desktop shortcut and assign an icon to the shortcut during install of my .rpm? If a script is req

3条回答
  •  悲哀的现实
    2021-02-06 11:43

    To create a desktop icon to an application follow the two steps below.

    1. In an Editor create a new file.

      gedit ~/.local/share/applications/NameYouWantForApplication.desktop
      
    2. Place this section within the file and save it.

      [Desktop Entry]
      Type=Application
      Encoding=UTF-8
      Name=JeremysPentaho
      Comment=Whatever Comment You want
      Exec=/home/yourname@yourdomain.com/Source/Pentaho/data-integration/spoon.sh
      Icon=/home/yourname@yourdomain.com/Source/Pentaho/data-integration/NameOfmyIconFile.jpg
      Terminal=false
      

提交回复
热议问题