Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: How to: change "default" filetype apps in firefox?

  1. #11

    Default Re: How to: change "default" filetype apps in firefox?

    After snooping a bit, I came up with a little solution that I think is perfect:

    In the directory "usr/share/applications/" there are two files, "defaults.list" and "mimeinfo.cache". I just made defaults.list (which is actually a link to "/var/cache/gio-2.0/defaults.list") point to mimeinfo.cache because unlike defaults.list, the mimeinfo.cache also has kde apps and contains all of the correct apps for handling different filetypes -- except in different order (it just couldn't be perfect...) I just rearranged the order of the apps (ie: putting ktorrent first from the left, and transmission to the right of it) and now everything is perfect!!

    I don't know what other effects my changes (pointing the defaults.list to mimeinfo.cache) may have, or even why there are so many "lists" that contain different apps to handle different filetypes. There are: (1)defaults.list, which contains only gnome apps, (2)mimeinfo.cache, which contains all the gnome and/or kde apps that I've set to handle different mimetypes but oddly rearranged in a manner that favors gnome apps, and (3)the actual list that KDE uses...

    Now all that's left is to find (3) and point all others to it and the universe will find it's balance...

  2. #12
    Camalen NNTP User

    Default Re: How to: change "default" filetype apps in firefox?

    sexyclient wrote:

    > After snooping a bit, I came up with a little solution that I think is
    > perfect:
    >
    > In the directory "usr/share/applications/" there are two files,
    > "defaults.list" and "mimeinfo.cache". I just made defaults.list (which
    > is actually a link to "/var/cache/gio-2.0/defaults.list") point to
    > mimeinfo.cache because unlike defaults.list, the mimeinfo.cache also has
    > kde apps and contains all of the correct apps for handling different
    > filetypes -- except in different order (it just couldn't be perfect...)
    > I just rearranged the order of the apps (ie: putting ktorrent first from
    > the left, and transmission to the right of it) and now everything is
    > perfect!!
    >
    > I don't know what other effects my changes (pointing the defaults.list
    > to mimeinfo.cache) may have, or even why there are so many "lists" that
    > contain different apps to handle different filetypes. There are:
    > (1)defaults.list, which contains only gnome apps, (2)mimeinfo.cache,
    > which contains all the gnome and/or kde apps that I've set to handle
    > different mimetypes but oddly rearranged in a manner that favors gnome
    > apps, and (3)the actual list that KDE uses...
    >
    > Now all that's left is to find (3) and point all others to it and the
    > universe will find it's balance...


    I see you found a better way to handle this. Congrats! ;-)

    Remember that Firefox is more a gnome-like app (gtk based) so it prefers as
    default the gnome applications unless any mysterious magic comes into
    place... I mean, I really don't know the "magic" behind the scenes that FF
    uses to select one or another application for the default mimetypes.

    P.S. Sorry for the response delay. I've just seen this message right now
    (7/6/2009 20:44 GMT +0200) as it was a nntp little outage :-)

    Greetings,

    --
    Camalen

  3. #13

    Default Re: How to: change "default" filetype apps in firefox?

    You could've not replied at all, but it still couldn't counter the massive impact your help has caused. Thanks again my fellow chameleon-ite!!

    On another note, though, this gtk/gnome firefox for KDE business (and the annoying side-effects of it, such as is the case here) is quite annoying... I just can't wait until the qt firefox port (Qt Port of Mozilla and Firefox 3) gets done. Though I haven't heard anything about it lately, I'm still holding my breath for a release sometime soon.

  4. #14

    Default Re: How to: change "default" filetype apps in firefox?

    Quote Originally Posted by Camale�n View Post
    sexyclient wrote:

    I openned "/usr/share/applications/defaults.list" and searched for "any
    application to handle pdfs. There was no one defined there so I edited that
    file by adding at the bottom:

    ***
    application/pdf=kpdf.desktop
    ***

    Then, I copied "kpdf.desktop" file from "/opt/kde3/share/applications"
    to "/usr/share/applications" and restarted firefox.

    Camale�n
    Thank You!
    I've been looking for the files that mozilla (FF) is getting it's information from.
    For at least 2-3 years the only answer I ever got or seen was the lame Preferences > Applications rutine.
    I knew there had to be something other than KDE > File Associations too.

    *fyi, this worked for me in openSuSE 12.2 / KDE 4.8.5

    Again, Thank You.
    Landis.

Page 2 of 2 FirstFirst 12

Posting Permissions

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