0
votes
1answer
151 views

Why does xdg-open text_file differ from sudo -u me xdg-open text_file?

If I run the following command, the text file opens in my preferred editor (kate). $ xdg-open /path/to/text/file However, if I try the following, where sparhawk is my username, I get several ...
3
votes
1answer
48 views

How can I prevent software from becoming default?

I recently installed SMPlayer and it became default without even asking, is there a way to prevent software doing this?
1
vote
2answers
5k views

Open file from terminal in specific application

I use xdg-open a lot in the terminal; this opens a file in the default application. However, sometimes I'd like to open a file in a different (non-default) application. Is there a way to achieve this ...
3
votes
1answer
2k 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 ...