You are not logged in.

1

Wednesday, May 11th 2005, 10:06am

[kopete] opening links in external apps.

Every now and then I get links sent to me through Kopete (and Kmail). I would like to just click them and have Firefox kick in and bring me there.

Instead it seems, for reasons unimaginable to me, that it downloads the page to a local cache and then lets me view it:
file:///tmp/kdecache-user/krun/4890.0.article.pl

Is there anything I can to stop this nonsence and get KDE or Kopete to handle URL's properly systemwide?

(please dont tell me to use konqueror for surfing)

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Wednesday, May 11th 2005, 3:54pm

Very likely the command for firefox is missing the %u parameter.

Either in the file associaton for text/html or the external browser command, what ever you are using.

Unfornately some distributors seem to ship broken .desktop files for Firefox (missing %u or %U in the Exec line)

Cheers,
_
Qt/KDE Developer
Debian User

3

Wednesday, May 11th 2005, 5:48pm

Do you know how I can fix this? I'm a bit new to this system (and linux in general). I'm running a Mandrake/KDE kombo through this live cd distribution:
http://www.pclinuxonline.com/

Thanks!

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Thursday, May 12th 2005, 4:12pm

External browser is in control center->KDE components->component chooser

File association would be in control center->KDE components->file association

Depending on your version of KDE the first one might not be there, but if it is it makes that the preferable solution

Cheers,
_
Qt/KDE Developer
Debian User

5

Thursday, May 12th 2005, 11:29pm

I tried to make the "Component Chooser" pass the %u parameter to firefox, but it wouldn't behave. So I tried making a simple bash-script that would start firefox with the %u, but Component Chooser didn't like that much either.

Then I tried to alter the link in the KDE Menu, and make that pass the %u, and trick the component chooser to use that link.

I even tried to make a bash script use the -remote command to pass firefox an URL. It worked, but i couldn't get the new-tab attribute to qork properly. Even if I did, im not sure how to make the script catch the URL I'm clicking and pass it to the -remote(URL) part...

How do I manage the file extension thingy? There seemed to be no settings there for http or www or whatever. What am I looking for?

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

6

Friday, May 13th 2005, 11:36am

Quoted

Originally posted by Emanon
I even tried to make a bash script use the -remote command to pass firefox an URL. It worked, but i couldn't get the new-tab attribute to qork properly. Even if I did, im not sure how to make the script catch the URL I'm clicking and pass it to the -remote(URL) part...

The %u is replaced with the URL.
If you have a script, the parameter corresponding to the position of the %us will be the URL

Quoted


How do I manage the file extension thingy? There seemed to be no settings there for http or www or whatever. What am I looking for?


text/html

That's why I said that the external browser setting is preferable, as it covers the protocol

Cheers,
_
Qt/KDE Developer
Debian User