How to find all programs associated with a MIME type? One could look for the MIME type
in the default, system-wide directory. For example, for application/pdf
,
grep -ls application/pdf /usr/share/applications/*
lists all the program files in /usr/share/applications
that are associated
with application/pdf
.
But that would overlook other directories, specially user-level directories.
Isn't there a command similar to
xdg-mime query default application/pdf
to list all associated programs, not only the default one?
sudo apt install libgirepository1.0-dev; pip install PyGObject
– mmigdol Apr 10 '23 at 18:54