

- #How to set a default program to open pdf files .exe#
- #How to set a default program to open pdf files install#
- #How to set a default program to open pdf files windows#
A) Open a terminal ( Ctrl+Alt+t) and navigate to the directory where you have a file you are interested in changing the default application for.ī) With the directory open in Nautilus click on the "down arrow" of the folder name and select the option Open in Terminal.So here is yet another answer xD with the steps I did: ĭiscover and change default program via CLIĪs naught101s' answer only presents the last bit of all the steps that I did, and supplementing/improving his post/answer with all the extra bits I have, I considered too much of a difference to his original answer.

You can check the mimeapps.list ( ~/.local/share/applications/mimeapps.list) to double-check and you'll now see it will have replaced WINE under.
#How to set a default program to open pdf files .exe#
exe files, all I need to do is tell it to be set as default. If you right-click the properties on the file, and for instance say I eventually do want to make PlayonLinux the default for Windows. This way they both options will show up when I try to load a Windows. To application/x-ms-dos-executable=sktop sktop Then find the line under ,Īnd change it from, in my instance application/x-ms-dos-executable=sktop In this case, you can leave the top section alone. In my instance I wanted to add PlayonLinux to select as a program to open. Gedit ~/.local/share/applications/mimeapps.list

#How to set a default program to open pdf files install#
Modify the Exec (should just say yourprogram %f as long as it's a default install with the program in /usr/bin)
#How to set a default program to open pdf files windows#
If you want to add support for the name in other languages just add a new line that says for instance: Name=PlayonLinux Cargador de programas de Windows When you see a command, run it in terminal, of course :)Ĭp similar_sktop name_of_your_sktop Guide as follows (I'm using 13.10 Saucy): My guide includes file type associations, so that your app will be listed in the "Recommended Applications" when right-clicking the file to see the properties. Here's how I did it without using the Ubuntu Tweak tool. Then, you should be able to see this: $ mimetype. The changes take effect after running sudo update-mime-database /usr/share/mimeĪnd, for icons, sudo gtk-update-icon-cache /usr/share/icons/gnome -f cat < That file can contain a MimeType= entry with semicolon-separated list of MIME types. desktop files in /usr/share/applications/. Įcho 'application/staruml-project=sktop' > ~/.local/share/applications/mimeapps.listĮcho 'application/staruml-project=sktop' | sudo tee -a /usr/share/applications/mimeapps.listĪpplications -> list of compatible MIME types This is driven by ~/.local/share/applications/mimeapps.list and detailed the other answers. This is in files in /usr/share/mime/packages/.
