Open BigBoyBarney opened 8 months ago
Thanks for the changes.
Which part of this PR requires Python 3.10? I'm not seeing it …
match sys.platform:
case 'darwin':
command = ["open", os.path.dirname(filename)]
case 'win32':
command = ["explorer", os.path.dirname(filename)]
case _:
command = ["xdg-open", os.path.dirname(filename)]
Match was introduced in Python 3.10
Should fix #726 as long as
xdg-open
is in$PATH
, which can be assumed for every distro. I tested it for GTK, Qt and CLI on Fedora 39.Changes
Code
utils.py
. Can take anerror_callback
param so error reporting can still be done uniquely for every UI.