straightly edit the line 552 in the (/usr/bin/)xdg-open script and add the torrent client before "chromium-browser" or "google-chrome" so that it looks something like this: http://pastebin.com/nt8nDPv9:
or just symlink your torrent client to some of the browsers listed there (e.g. "mozilla" since nothing uses that name anyway).
Problem is now that xdg-open is supposed to open anything else with Chromium/Google Chrome it opens them in that same torrent client. Dunno how often this is gonna happen, though.
Yeah, and for some reason manually adding "x-scheme-handler/magnet=qBittorrent.desktop" to "~/home/det/.local/share/applications/defaults.list" won't do anything, which is why I did it like this.
]]>Peanut wrote:You can set the default applications (used by e.g. xdg-open) by installing the package perl-file-mimeinfo from the repositories, and invoke the mimeopen command like this:
mimeopen -d /path/to/file
You will then be asked what application to use when opening /path/to/file:
Please choose a default application for files of type text/plain 1) notepad (wine-extension-txt) 2) Leafpad (leafpad) 3) OpenOffice.org Writer (writer) 4) gVim (gvim) 5) Other...
Your answer will be set as the default handler for that type of file. Works like a charm
If you really want to, you can also modify ~/.local/share/applications/defaults.list manually; the format is quite simple:
image/png=image-viewer.desktop video/x-matroska=video-player.desktop (...)
Thanks! This has been bugging me for a while.
i added this to the wiki since i recently found another method and i added this one^^
]]>But I'm still getting issues with xdg-open and Chromium: xdg-open asks the DE for what to open, and uses xdg-mime as a fallback if no DE is found. I'm using Xfce, and yet want to change my file manager but exo-open (which is what xdg-open calls for Xfce) appears to be locked to calling Thunar. Is there any way around this, say to configure exo-open?
]]>You can set the default applications (used by e.g. xdg-open) by installing the package perl-file-mimeinfo from the repositories, and invoke the mimeopen command like this:
mimeopen -d /path/to/file
You will then be asked what application to use when opening /path/to/file:
Please choose a default application for files of type text/plain 1) notepad (wine-extension-txt) 2) Leafpad (leafpad) 3) OpenOffice.org Writer (writer) 4) gVim (gvim) 5) Other...
Your answer will be set as the default handler for that type of file. Works like a charm
If you really want to, you can also modify ~/.local/share/applications/defaults.list manually; the format is quite simple:
image/png=image-viewer.desktop video/x-matroska=video-player.desktop (...)
Thanks! This has been bugging me for a while.
]]>mimeopen -d /path/to/file
You will then be asked what application to use when opening /path/to/file:
Please choose a default application for files of type text/plain
1) notepad (wine-extension-txt)
2) Leafpad (leafpad)
3) OpenOffice.org Writer (writer)
4) gVim (gvim)
5) Other...
Your answer will be set as the default handler for that type of file. Works like a charm
If you really want to, you can also modify ~/.local/share/applications/defaults.list manually; the format is quite simple:
image/png=image-viewer.desktop
video/x-matroska=video-player.desktop
(...)
Same with the 'Show in folder' option in chromium. You need to set a xdg mime association for the file type 'application/x-directory'.
A way to set mime filetype associations in an openbox environment are through filemanager programs like pcmanfm or qtfm.
Hope this helps,
Wittfella
I have the same problem. A solution would be appreciated!
Glad that I'm not the only one!
]]>