How to create a shortcut in Start menu on Linux (KDE or Gnome)

Answered

Comments

1 comment

  • Avatar
    juanjo

    We don't have a built-in action to install the shortcuts (we have added it to our TODO list) but you can reuse a regular shortcut created in a folder <shortcutlist> and then use the below:

    <runProgram program="xdg-desktop-menu" programArguments="install -mode user -novendor ${installdir}/yourShortcut.desktop"/>
    

    If you want the shortcut to be installed in an specific built-in menu, you can add a new key to the shortcut file before using xdg:

    <addTextToFile file="${installdir}/yourShortcut.desktop" text="&#xA;Categories=Development&#xA;"/>
    <runProgram program="xdg-desktop-menu" programArguments="install -mode user -novendor ${installdir}/yourShortcut.desktop"/>
    

    You can find additional information here.

Please sign in to leave a comment.