hydrusnetwork / hydrus

A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers.
http://hydrusnetwork.github.io/hydrus/
Other
2.38k stars 158 forks source link

Set default external program for MIME or tag or other #594

Open Zweibach opened 4 years ago

Zweibach commented 4 years ago

Set default external program for MIME or tag or other.
If there's more than one program for a MIME or tag combination, get a dialogue when attempting to open to pick between. Not all files display equally well in all viewers for any given MIME and there's always edge-cases.

bbappserver commented 4 years ago

There are some technical limitations here which you might be able to bypass with some funky python library. Normally you can just ask the operating system's workspace to open a file, and it decides what the default program for doing that is. If it is difficult to get an OS agnostic list of possible programs to open a file then an acceptable alternative would be an override in the settings, or list of overrides, that can be added using the system's file open dialog, or manually typing a path into a list.