jschlatow / taskopen

Tool for taking notes and open urls with taskwarrior
GNU General Public License v2.0
363 stars 31 forks source link

Remove xdg-open dependency #122

Closed jschlatow closed 3 years ago

jschlatow commented 5 years ago

For CLI environment, taskopen should not depend on XDG. Setting the FILE_CMD will replace the use of xdg-open with a user-defined setting.

We therefore need a better way to discover what mimetype-based open tools are available on the system. On debian-based systems, there is the run-mailcap command that uses the mailcap file. A prompt if no known tool could be found (neither xdg-open, nor run-mailcap) might be a good idea.

Note, that taskopen -V will still try to execute xdg-open even if FILE_CMD has been set.

jschlatow commented 3 years ago

2.0 has no notion of FILE_CMD anymore.