LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


  1. Old Comment
    Posted 05-07-2015 at 12:14 PM by rocket357 rocket357 is offline
  2. Old Comment
    Posted 05-07-2015 at 11:15 AM by exton exton is offline
  3. Old Comment

    Fixing the annoying firefox' associations issue once and for all

    Annoying Firefox' associations issue II, the return

    The file manager association seems to be because of a combination of a Dbus-method that is more or less Gnome-specific/not widely adopted elsewhere, and a myriad of possible locations of xdg-mime config files.

    For the Dbus part one may need do rename/delete a file called "org.freedesktop.FileManager1.service" located at /usr/share/dbus-1/services/ and $HOME/.local/share/dbus-1/services.

    It's a ".desktop" kind of thing, I originally thought I could edit it and put konqueror in the "exec" part, but it seems it's not compatible, or maybe that the whole xdg thing was what was really going on, even though it didn't look that way.

    The deal with the xdg system is that there can be config files everywhere.

    Here's a list, from ArchWiki:

    Code:
    $HOME/.config/$desktop-mimeapps.list 	user overrides, desktop-specific
    $HOME/.config/mimeapps.list 	user overrides
    /etc/xdg/$desktop-mimeapps.list 	sysadmin and vendor overrides, desktop-specific
    /etc/xdg/mimeapps.list 	sysadmin and vendor overrides
    $HOME/.local/share/applications/$desktop-mimeapps.list 	for compatibility but now deprecated, desktop-specific
    $HOME/.local/share/applications/mimeapps.list 	for compatibility but now deprecated
    /usr/local/share/applications/$desktop-mimeapps.list and
    /usr/share/applications/$desktop-mimeapps.list 	distribution-provided defaults, desktop-specific
    /usr/local/share/applications/mimeapps.list and
    /usr/share/applications/mimeapps.list 	distribution-provided defaults
    I'm not 100 sure but I think I even had konqueror as the output of some "xdg-query" command that would tell me the association for folders, but, regardless, firefox would open folders with pcmanfm, if it was installed.

    What I hadn't noticed was that I actually had the $HOME/.config/mimeapps.list, which funnily enough had only the pcmanfm settings. All the others are set on $HOME/.local/share/applications, and the file over there even has both the directory lines, set to KFM.

    For whatever reason the file at .config takes precedence over the other, at the same time it's not apparent on whatever command that would tell me the settings (but again, I'm not 100% sure on that, if I did that it was months ago, before I gave up).


    The end...

    ...or is it?
    Posted 05-03-2015 at 07:45 PM by the dsc the dsc is offline
    Updated 05-03-2015 at 07:48 PM by the dsc

  



All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration