Results 1 to 3 of 3

Thread: Use filename extension instead of content type to choose default application ?

  1. #1
    Join Date
    Jun 2005
    Beans
    208

    Use filename extension instead of content type to choose default application ?

    I would like to associate the default application for a certain file type "the old way" by using the filename extension (*.doc etc.) instead of the file contents. The reason for this is the increasing number of applications using the XML file format. Currently all XML type files - even if they use different filename extensions - can only be associated with one application.

  2. #2
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    801
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Use filename extension instead of content type to choose default application ?

    Install 'File Types Editor' a.k.a. assogiate.
    Add a new file type. You can give it a number of attributes. The most important is the filename, which should be *.<your extension here>.

    File name patterns take precedence over file contents or XML elements. So even if the MIME susbsystem detects the file as XML, it should identify your file correctly. Of course, a more elegant way would be to specify XML elements for your file type but that can be tricky.

    One your new file type is created, you can associate an application with it from within Thunar or Xfce4's MIME type editor.

    Cheers!
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  3. #3
    Join Date
    Jun 2005
    Beans
    208

    Re: Use filename extension instead of content type to choose default application ?

    Thanks a lot! That solved something that annoyed me for a long time...

    Quote Originally Posted by LewisTM View Post
    Install 'File Types Editor' a.k.a. assogiate.
    Add a new file type. You can give it a number of attributes. The most important is the filename, which should be *.<your extension here>.

    File name patterns take precedence over file contents or XML elements. So even if the MIME susbsystem detects the file as XML, it should identify your file correctly. Of course, a more elegant way would be to specify XML elements for your file type but that can be tricky.

    One your new file type is created, you can associate an application with it from within Thunar or Xfce4's MIME type editor.

    Cheers!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •