How can I make a desktop shortcut of the two highlighted shell files (forge.sh and forge-adventure.sh)? Copying and pasting doesn’t work since the filepath isn’t brought over with them. I’ve tried using Menu Editor but can’t find a decent guide on setting it up.

  • Brainberry1337@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Short hint for the Desktop directory: /home/<user>/Desktop is language specific! On my german system for example it is /home/<user>/Schreibtisch

    Therefore, you shouldn’t use /home/<user>/Desktop or ~/Desktop in snippets/scripts, but “$(xdg-user-dir DESKTOP)”.

    Example: touch "$(xdg-user-dir DESKTOP)/MyApp.desktop"