If I install software as a flatpak app, to use it I have to start it from the shell like this flatpak run org.name.appname

How do I add an icon for that to ubuntu dock? I can make a script like that:

flatpak run org.audacityteam.Audacity

but then, how do I add this shell script to dock?


Create a file in $HOME/.local/share/applications/audacity.desktop with this content:

#!/usr/bin/env xdg-open
[Desktop Entry]
Exec=/usr/bin/flatpak run org.audacityteam.Audacity

After that the launcher will appear in dash: press super (windows) and type "audacity" and launch the application. While audacity is running right click on its icon on dock and choose "Add To Favorites".

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.