In this tutorial we will explain how to use flatpak on Linux Ubuntu and How to run flatpak app from terminal. We will also see were are flatpak apps installed on the System.
How To Run Flatpak App From Terminal
To run a Flatpak application from the command line:
flatpak run Application ID or APP_FQDN
The only official way to launch an app is with the above command.
APP_FQDN orApplication ID are the Application fully qualified names are usually a reverse domain name where the application is hosted or somehow denotes the developer. For example, APP_FQDN for KRITA is org.kde.krita and APP_FQDN for Spotify is com.spotify.Client and APP_FQDN for Visual Studio is com.visualstudio.code.
These APP_FQDN are never memorable and it makes it hard to run flatpak app from terminal. But here is a way to look at information about an installed package and get the Application ID. You can run the following command to find out what command to use to run the flatpak app:
flatpak info Application ID
For example, to find out what command to use to run Slack, you can run the following command:
flatpak list --columns=name,application | grep -i slack
You wll get on-screen output which will show the APP_FQDN or Application ID of Slack. In this case you will see “Slack com.slack.Slack”. Here the Application ID is com.slack.Slack and this can be used to run flatpak apps and get details about the respective app.
You can execute the following commands: “flatpak info com.slack.Slack” or “flatpak run com.slack.Slack”.