oio11: (Default)
[personal profile] oio11

Part 2: Specify default applications for file types - file managers

 
Part 1 introduced the xdg-mime command to change the default application for a file type. If you want a GUI method, or more tweaking is required after running the command, this post is for you.
File managers can create file associations - the assigning of a default application to open files of a certain extension. Below is an example of changing the PDF default application using the Nautilus file manager for the GNOME desktop.
  1. Open Nautilus, and navigate to any PDF file.
  2. Right click on the PDF file, and select Properties.
  3. Click to open the Open With tab.
  4. Note that this screen identifies the current Default Application -Document Viewer, an alias for evince.
  5. Select the new default application.

    If you find the application you want under Recommended Applications, click the app and then the Set as default button. Otherwise, click the Show other applicationsbutton to display more application choices.

Troubleshooting



If the application you want, say xpdf, is not listed under Recommended or Other applications, first make sure that it is installed.
If the application is installed, but not listed in the Open with tab,
  1. Edit the application's desktop file - xpdf.desktop.The desktop file can exist in 1 or both of the following locations.
    • $HOME/.local/share/applications/xpdf.desktop
    • /usr/share/applications/xpdf.desktop
  2. Append %U to the end of the Exec= line.The Exec= line specifies the command and any arguments to start the application. If the Exec= line does not specify that the application can take command line arguments, the application is omitted from the Recommended applications andOther applications lists.
    The Exec= line in the xpdf.desktop file should look like the following:

    Exec=xpdf %U
    %U indicates that the xpdf command can take multiple URLs as arguments.
xpdf should now appear in the Recommended applications list.

 
http://linuxcommando.blogspot.nl/2014/03/part-2-specify-default-applications-for.html

May 2025

S M T W T F S
    123
45678910
11121314151617
181920212223 24
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 13th, 2025 02:27 pm
Powered by Dreamwidth Studios