mimeopen
mimeopen default applications⚑
Usage⚑
Check the current default application⚑
mimeopen
or mimeopen .
.
Change the default application⚑
mimeopen -d
or mimeopen -d .
.
mimeopen
will change or add the entries to ~/.config/mimeapps.list. If a .desktop entry is requiered for some app, it will be automatically created in .local/share/applications/.
(https://askubuntu.com/questions/90214/how-do-i-set-the-default-program)