Howto setup Chromium to open torrent files with specific application/client without GNOME or KDE on gentoo linux

from:http://webcache.googleusercontent.com/search?q=cache:xQ4wXEg32vEJ:mlinuxgada.info/content/gentoo/182+Chromium+open+BT+linux&cd=3&hl=zh-TW&ct=clnk&gl=tw

If you use fluxbox or some other lightweight window manager you probably wanna know howto set up the correct file associations to be able to open torrent files with the correct client. The easiest way is to use xdg-mime.

Xdg-mime is a tool for getting, setting file permissions … you can get the current program associated with *.torrent files by typing;

xdg-mime query default application/x-bittorrent

If the result is not good for you, you can easily change the default app /in our example we’ll use deluge/ for the current filetype with this command;

xdg-mime default deluge.desktop application/x-bittorrent

And of course chech again if the result is what you want. So now you can donwload some torrent file with Chromiumand after that you can just open it – with our default application deluge.

Thus you can set up your preferred applications for every filetype.

Enjoy!

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s