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".

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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