Is Thunar able to filter the long list of "Open with" application that can be seen by right clicking a file and selecting open with and other application? Things like screensaver themes are in the list which im guessing it not used to open other files. And all the stuff from Settings Manager is there to like Power Manager. Im just guessing but maybe this from a .desktop file can be changed to something else to exclude it from the list of applications: Type=Application
Sometimes applications supporting a specifc mimetype dont put a .desktop file into /usr/share/applications/ If there is no desktop file for an application, there is no generic way (that I know of) to figure out which application supports which mime types. So I think, it is correct to just list all possible applications. We for sure will not start nitpicking specific applications here, like excluding screensaver (possibly it will accept a *.jpg ?) or others. IMO it is not bad to have all applications in the list for 2 reasons: 1. Usually "open with" is used rarely. If you found the right application, you usually mark it as default application for the mime type. 2. There is a type ahead search
If Thunar can honor "NoDisplay=true" then maybe those .desktop files can be excluded from the "Open with" list. https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#recognized-keys I have these .desktop files using "NoDisplay=true": /usr/share/applications/apport-gtk.desktop /usr/share/applications/gcr-prompter.desktop /usr/share/applications/gcr-viewer.desktop /usr/share/applications/geoclue-demo-agent.desktop /usr/share/applications/gnome-software-local-file.desktop /usr/share/applications/hplj1020.desktop /usr/share/applications/libreoffice-xsltfilter.desktop /usr/share/applications/nm-applet.desktop /usr/share/applications/org.gnome.Software.Editor.desktop /usr/share/applications/panel-desktop-handler.desktop /usr/share/applications/python2.7.desktop /usr/share/applications/python3.7.desktop /usr/share/applications/shares.desktop /usr/share/applications/smplayer_enqueue.desktop /usr/share/applications/snap-handle-link.desktop /usr/share/applications/Thunar-folder-handler.desktop And also 39 .desktop files with games from a game collection called SGT. Having so many games in the application list really makes it messy if those games/.desktop files are not meant to be used for opening files. One solution could be to have an extra collapsed section besides Recommended Applications and Other Applications. We could could have: Recommended Applications Other Applications Not displayed Applications The "Not displayed Applications" section could be collapsed by default as to not take up space. "Not displayed Applications" section contains the .desktop files with "NoDisplay=true". That way the user could be presented with a short list by default which properly contains the application the user is looking for and still have the option to unfold "Not displayed Applications" if the user is looking for a rarely used .desktop file to open files with.
https://git.xfce.org/xfce/thunar/tree/thunar/thunar-gio-extensions.c#n629 Same for nautilus and nemo which do not ignore or treat applications with NoDisplay=true differently. However, they show a smaller list to being with.
ok, reopened. Sorry, looks like I was to hasty to close the issue. It would be interesting how nemo/nautilus filter applications, compared to thunar / why there are less applications. And it would make sense to do it in the same way for thunar. Regarding the "NoDisplay=true" attribute: Would be ok for me to have a separate "Applications without GUI" section. Like always, patches are very welcome !
> And it would make sense to do it in the same way for thunar. And to check if it will make sense to do it in the same way for thunar.
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/249. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev