You are not logged in.

#1 2013-11-03 14:37:56

ExoDoom
Member
Registered: 2013-11-01
Posts: 39

Default protocol handlers in Openbox

Hi all!

I'm switching from KDE to my own openbox-based environment. I really love the idea of building a system that just suits my needs. Nevertheless, I have stepped into some minor issues while trying to configure it (all told, less than I expected). One of these issues is default protocol management. In KDE, I used to "xdg-mime default transmission-qt.desktop application/x-bittorrent x-scheme-handler/magnet" in order for Qtransmission to handle both torrent files and magnet links. "xdg-mime default thunderbird.desktop x-scheme-handler/mailto", and Thunderbird managed my mailtoes. However, these don't work now. If I issue both commands (using transmission-gtk instead of transmission-qt), my ~/.local/share/applications/mimeapps.list gets updated and Thunar launchs Transmission when I double-click a torrent file (didn't realize if it did it before), but neither Transmission handles magnet links nor Thunderbird manages mailtoes if I click them on Firefox. I have tried installing gnome-defaults-list from the AUR and copying it to ~/.usr/share/applications (as described in the wiki), but no luck. Installing libgnome or issuing "ln -s ~/.local/share/applications/mimeapps.list ~/.local/share/applications/mimeinfo.cache" doesn't solve the problem.

Of course I could click a magnet/mailto link on Firefox and choose the correct application to open it with, but I wondered if there was a cli method. I have a huge magic-bash-script-to-configure-all-and-I-really-mean-all-my-system-yes-I'm-that-lazy, and the more I can delegate to this script, the better. Moreover, is there a way to completely integrate xdg-utils into openbox? I solved some problems adding "export DE=xfce" to my ~/.xinitrc, but not all my xdg-whatever commands work yet.

Thanks in advance for your help smile

Offline

Board footer

Powered by FluxBB