Tagged Questions
3
votes
1answer
1k views
How to change file association for files opened in Dolphin from command line in GNOME?
I would like to change several default applications for files opened in Dolphin. I know I could do it manually with kcmshell4 filetypes, keditfiletype or however else but is there a way how to change ...
4
votes
1answer
4k views
How to get the mime type of a file from the command line?
I'm trying to get the mime type of a file from the command line as a printed string (eg. application/vnd.oasis.opendocument.spreadsheet).
I looked up how to do this and found the xdg-mime command.
...