1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 760
/ 1 Year ago, thu, november 24, 2022, 1:21:30
I need to create a script that returns the default app to be used for a given file extension (including the path). I had a look at the file
command which can return the mime type and xdg-open
which would open a file. But what I'd like to get is
myscript doc
/usr/bin/libreoffice
.or.
myscript fun
/opt/acme/roadrunner/meepmeep
How do I do that?
More From » bash