Share your file-opener script - Programming On Unix

Users browsing this thread: 1 Guest(s)
venam
Administrators
I rely on the freedesktop utility xdg-open as it already has full integration with mime types and desktop files. I kind of pointed it a bit in this discussion about default programs.

So what I usually do is xdg-open, and if it doesn't call the program I want then I can switch it using mimeopen -a. In the case where my program isn't listed, I create a desktop file in ~/.local/share/applications, then update-desktop-database. Most of the time, this solves my issues, otherwise I can dive into adding my own mimetype in ~/.local/share/mime/application.


Messages In This Thread
Share your file-opener script - by phillbush - 30-05-2020, 07:40 PM
RE: Share your file/link-opener script - by z3bra - 31-05-2020, 03:55 AM
RE: Share your file/link-opener script - by venam - 31-05-2020, 04:12 AM