You are not logged in.
I'd like to change my default torrent client for Google Chrome. There's no such thing as 'default apps' in Options. Any ideas?
Last edited by Llama (2009-12-14 09:24:02)
Offline
Hi
chromium uses xdg-open to open the correct application. So maybe you can adjust the xdg configuration. I don't know about gnome but chromium reads even kde config directories and finds for example user defined protocols for skype or spotify.
dcrabs
Offline
Thanks! Then I have to study xdg-utils, haven't I
? FYI: I use KDE4. Any further hints are extremely welcome.
There are Default Applications in KDE System Settings, but the list doesn't include anything like a Bittorrent Client and doesn't seem to be expandable.
Last edited by Llama (2009-12-13 08:48:30)
Offline
You just need to open your file manager (dolphin), select a torrent file and associate it with the desired torrent client.
Last edited by Knives (2009-12-13 21:04:52)
Offline
Thanks!
Offline
I had the same problem and solved it doing a really ugly hack: I've erased the whole content of /usr/bin/xdg-open and replaced it by:
#!/bin/bash
kfmclient exec $1
This way I can simply use the KDE4 file association to open my files with chrome...
AFAIK I have no use for xdg-utils, and my file association are already made with KDE, and it's also easier to set since KDE have a GUI for file association.
Just using Dolphin to set my file preferences didn't seem to work, don't know why... And trying to open any type of file with xdg-open gives the following output:
xdg-open file.pdf
xdg-open: line 410: firefox: command not found
xdg-open: line 410: mozilla: command not found
xdg-open: line 410: netscape: command not found
xdg-open: no method available for opening 'file.pdf'
So if there is any chance of a complication by hacking xdg-utils this way, or if anyone can tell me why xdg is behaving this way, I'm interested. Until then, I'll just use my poor hack. Hope this might help anyone having the same trouble as me though...
Offline
Azriel:
If you are going to use kfmclient, u could just add
export DE=kde
to your openbox autostart.sh
Offline
This should work in all WM and DE (works in xmonad for me):
xdg-mime default xpdf.desktop application/pdfOf course you can replace xpdf with what ever you use ... evince.desktop etc ...
Last edited by timetrap (2010-04-18 01:19:54)
Offline
This should work in all WM and DE (works in xmonad for me):
xdg-mime default xpdf.desktop application/pdfOf course you can replace xpdf with what ever you use ... evince.desktop etc ...
That really helped me
A simple and good soloution ![]()
It was really annoying that firefox was launched every time I opened a pdf from chrome, escpecially on this small netbook.
Last edited by mapster (2010-09-09 22:17:35)
Offline
timetrap wrote:This should work in all WM and DE (works in xmonad for me):
xdg-mime default xpdf.desktop application/pdfOf course you can replace xpdf with what ever you use ... evince.desktop etc ...
That really helped me
A simple and good soloution
It was really annoying that firefox was launched every time I opened a pdf from chrome, escpecially on this small netbook.
For pdf there is also an extension that allows you to view pdf within chrome using google doc reader
I personally find it really useful and stable.
Offline
What I've done is make xdg-open use my mailcap (when I have for mutt and w3m), for customizing the mailcap is fairly simple. I commented out line 423 in /usr/bin/xdg-open and prepended an "if" to line 424 to have xdg-open default to run-mailcap (for some reason, xdg-open only relies on the mailcap file if on a Debian system, so I just commented out the check for the system being Debian). Now, not only do my PDFs auto-open correctly, but everything else I've defined (like .nb files in Mathematica!)
Registed Linux User 483618
Offline
Here is the way you do it:
Go to:~/.local/share/applications
Open up mimeapps.list
Add your mime type in there.
i.e. for playlists to open you'd add:
audio/x-mpegurl=vlc
if you want to use the vlc player to open those links.
Add as many mime types and their app associations in here
Offline