I have an application that is crashing, so I want to run it from a terminal to see the output… however, I don’t know what the command is to run it.
Everything I’ve read says to find the .desktop file, but I can’t find it… and I don’t even know the file name I’m looking for, so that isn’t too helpful.
Linux is getting so user friendly it’s hard to use.
The desktop icons (other than user-customized ones) are stored under /usr/share/applications. I typically use the grep command with the recursive (-r) and ignore-case (-i) options to search that directory.
flatpaks aren’t like traditional tools, since they run in a sandbox etc. So they don’t have an executable in /usr/bin etc. as something installed using an rpm would have.
To run a flatpak from the command line, you’d use flatpak run ... See man flatpak-run for more information. For the complete list of man pages related to flatpak, try: apropos flatpak.
If the flatpak is from Fedora, you’d file bugs on the Fedora bugzilla. If it’s from Flathub though, you’ll file bugs there, since the Fedora community does not maintain Flatpaks on Flathub.
I’m not if I’m misunderstanding the question:
You ran a app, but you don’t know the name for running it in the terminal? I recently recognised a few apps without the app Name in the graphical representation of the app.
So you want to run the crashing app in the terminal with a verbose output of the errors messages that happen during runtime, right?
There is the environment variable $XDG_DATA_DIRS.
Your .desktop files are in one of the directories listed in this variable (in a sub-directory applications).
In case of an applicaton installed as Flatpak it is most likely /var/lib/flatpak/exports/share/applications/. The line starting with Exec= in the .desktop file specifies what exactly is being run when starting the application.
Troubleshooting tip:
If you want to change something in the .desktop file make a copy to ${HOME}/.local/share/applications/. This will overrule the original package .desktop file.
If your application is crashing you might also find a report about it in the Problem Reporting application (CLI: gnome-abrt or sudo abrt-cli list).
Can I mark this as a secondary solution or something?
I marked my own post as the solution, because it has flatpak list, which is the command that I was looking for, and so likely others will want that too… but this is such a great post, I don’t want it to be overlooked.