App installed using apt
package manager starts running when I type the app name in terminal like firefox
. [Using Kubuntu 22.04]
which firefox
This command will show the path of firefox
in my system.
In case of Flatpak apps, how to run the the flatpak app without
flatpak run org.mozilla.firefox
So, how can I find flatpak app's path like which firefox
.
I need it so that I can set brave browser
app in $CHROME_EXECUTABLE path for flutter development.
which
returns the full pathname of an executable, provided it exists in one of the directories listed in the search PATH.flatpak
exposes executables for installed applications in/var/lib/flatpak/exports/bin
. However, that directory is not automatically included in the PATH when you installflatpak
. You could include it in the PATH yourself. Then, you could launch the Firefox version installed by flatpak with the commandorg.mozilla.firefox
.You can always launch an executable by providing the full path name:
So you can just set the variable as:
Just by being informed about how flatpak does it, or from the documentation. No tool can provide that information if the executable is not in the path or if you do not know the name of the executable.