Re: Not working, Link from Kmail -> Konqoerror

Ingo Klöcker <[email protected]>
Newsgroups gmane.comp.kde.users.pim
Message-ID <[email protected]>
On Friday 05 June 2009, Bruce MacArthur wrote:
> On Thursday 04 June 2009 15:39, Ingo Klöcker wrote:
> > On Thursday 04 June 2009, Bruce MacArthur wrote:
> > > On Thursday 04 June 2009 04:23, Kevin Krammer wrote:
> > > > On Thursday, 2009-06-04, Günther J. Niederwimmer wrote:
> > > > > Hello,
> > > > >
> > > > > is it possible to configure KMail / Konquerror to work
> > > > > together?
> > > > >
> > > > > My Problem, when I start a Link from a EMail I have in the
> > > > > Konquerror the /var/tmp/kdecache-xxxx/ path and not the
> > > > > correct URL?
> > > > >
> > > > > openSuSE 11.1 KDE 4.2.4
> > > >
> > > > KMail uses a KDE service to launch applications for URLs so
> > > > this has to be fixed at KDE settings level.
> > > >
> > > > The symptoms indicate that the file association of the file
> > > > type of the link (text/html for normal web pages), or the
> > > > global web browser setting, use a command which does not
> > > > include %u as one of its parameters.
> > > >
> > > > For example on my system I have
> > > > System Settings -> Advanced Tab -> File associations
> > > > for text/html Konqueror on top of the list
> > > > If I select this entry and click "Edit" I see that the command
> > > > is kfmclient openURL %u text/html
> > > >
> > > > where %u will be replaced with the URL
> > > >
> > > > This command is usually directly taken from a .desktop file
> > > > installed by the application packages so it should be correct.
> > > > Manual modifications to file associations could have changed
> > > > that.
> > >
> > > I have long had the very same problem under openSUSE 10.2.  I am
> > > migrating to Kubuntu Jaunty (9.04) and do not yet know quite what
> > > to expect in this regard.  A previous off-list exchange on the
> > > topic reads as follows.  I would note that, although I think that
> > > I have found the area cited by Kevin, everything actually reads
> > > quite differently -- and the /var... that is used by Konqueror
> > > does NOT appear!  I do NOT yet understand how to make things
> > > function "normally"!!!  Any further specific remarks would be
> > > GREATLY appreciated!
> >
> > Maybe there are some old desktop files in ~/.kde/share/applnk or in
> > ~/.local/share/applications.
>
> Thank you, Ingo.  Could you tell us how to distinguish "old"
> from "proper" in either folder (or in both!)?

Check the time stamp. ;-)

More serious, open the desktop files in an editor and check the Exec= 
line. Look for desktop files having "kfmclient" in the Exec line. For 
example, kfmclient_html.desktop has the line

  Exec=kfmclient openURL %u text/html

This means URLs pointing to HTML files will be opened with the 
command "kfmclient openURL %u text/html" where the %u is replaced by 
the URL of the HTML file. (HTML files might be opened with a different 
command if there is another desktop file for HTML files with a higher 
priority.)

If the Exec line contains a %f then KDE will download the file to a 
temporary file and pass the filename of the temporary file to the 
application. So look for Exec lines containing "kfmclient" and %f.

Instead of looking at files you can also open the File Assocations 
settings dialog (in kcontrol). Enter html in the "filename pattern" 
field and then have a look at the applications for text/html. Select 
Konqueror, press Edit, select the Application page in the properties 
dialog and have a look at the Command field. It contains the value of 
the Exec line.


What happens if you run
  kfmclient exec http://home.att.net/~hideaway_today/t133/noah.htm
in Konsole?


Regards,
Ingo

_______________________________________________
KDE PIM users mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kdepim-users
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEABECAAYFAkopg2AACgkQGnR+RTDgudgV6QCePG/pfuEEwcPAqd4k9BVI+uLY
lwYAoJSU3nYab/YM6S/LY7+NQk1Te2Hf
=jRhd
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.