You are not logged in.

#1 2009-12-12 10:37:59

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Google Chrome default apps [SOLVED]

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

#2 2009-12-12 11:16:15

dcrabs
Member
From: Sweden
Registered: 2008-10-03
Posts: 149

Re: Google Chrome default apps [SOLVED]

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

#3 2009-12-13 08:41:26

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Google Chrome default apps [SOLVED]

Thanks! Then I have to study xdg-utils, haven't I big_smile ? 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

#4 2009-12-13 21:04:27

Knives
Member
Registered: 2008-12-26
Posts: 25

Re: Google Chrome default apps [SOLVED]

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

#5 2009-12-14 09:23:34

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Google Chrome default apps [SOLVED]

Thanks!

Offline

#6 2009-12-21 22:17:48

Azriel
Member
Registered: 2008-01-23
Posts: 58

Re: Google Chrome default apps [SOLVED]

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

#7 2009-12-22 00:29:58

Knives
Member
Registered: 2008-12-26
Posts: 25

Re: Google Chrome default apps [SOLVED]

Azriel:

If you are going to use kfmclient, u could just add

export DE=kde

to your openbox autostart.sh

Offline

#8 2010-04-18 01:19:09

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: Google Chrome default apps [SOLVED]

This should work in all WM and DE (works in xmonad for me):

xdg-mime default xpdf.desktop application/pdf

Of course you can replace xpdf with what ever you use ... evince.desktop etc ...

Last edited by timetrap (2010-04-18 01:19:54)

Offline

#9 2010-09-09 22:16:15

mapster
Member
Registered: 2009-06-03
Posts: 31

Re: Google Chrome default apps [SOLVED]

timetrap wrote:

This should work in all WM and DE (works in xmonad for me):

xdg-mime default xpdf.desktop application/pdf

Of course you can replace xpdf with what ever you use ... evince.desktop etc ...

That really helped me smile A simple and good soloution big_smile

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

#10 2010-09-09 22:19:58

Azriel
Member
Registered: 2008-01-23
Posts: 58

Re: Google Chrome default apps [SOLVED]

mapster wrote:
timetrap wrote:

This should work in all WM and DE (works in xmonad for me):

xdg-mime default xpdf.desktop application/pdf

Of course you can replace xpdf with what ever you use ... evince.desktop etc ...

That really helped me smile A simple and good soloution big_smile

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

gPDF right here

I personally find it really useful and stable.

Offline

#11 2010-10-29 20:33:50

Sara
Member
From: USA
Registered: 2009-07-09
Posts: 219
Website

Re: Google Chrome default apps [SOLVED]

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

#12 2011-04-27 17:40:18

slantedwalker
Member
Registered: 2011-04-27
Posts: 1

Re: Google Chrome default apps [SOLVED]

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

Board footer

Powered by FluxBB