kfmclient exec with anchor URL
Waldo Bastian
bastian at kde.org
Wed Feb 4 23:21:52 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed February 4 2004 22:56, Martin Koller wrote:
> Hi list,
>
> I see the following behaviour with kfmclient and wanted to know if this is
> correct or a bug:
>
> kfmclient exec file:/tmp/h#123
>
> (where konqi is my default browser)
>
> opens konqi with "file:/tmp/h" => so it removes the anchor
>
> When I start konqueror file:/tmp/h#123
> this works correctly.
>
> I can not use openURL instead, because this does not honor the filetype
> setting (e.g. starting netscape instead)
Yes, this is a bit strange indeed. The reason is that we pass local files as
"paths" and not as "URL" when kfmclient_html.desktop gets executed.
That's because applications like xmms don't expect to get local files in URL
form.
Patch below fixes. (CC'ed kfm-devel for review)
- --- kio/krun.cpp 15 Jan 2004 15:54:42 -0000 1.247
+++ kio/krun.cpp 4 Feb 2004 23:14:36 -0000
@@ -266,7 +268,7 @@ KRunMX2::subst( int option, const KURL &
{
switch( option ) {
case 'u':
- - ret << (url.isLocalFile() ? url.path() : url.url());
+ ret << ((url.isLocalFile() && !url.hasRef()) ? url.path() : url.url());
break;
case 'd':
ret << url.directory();
Cheers,
Waldo
- --
bastian at kde.org -=|[ SUSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAIX6QN4pvrENfboIRApkLAJ9Tg0I+Qv/3rnqBHC5t9F5Ivx9T9ACglYk8
us1jC6hpQ2+GB1Oo79TFDlQ=
=RVBY
-----END PGP SIGNATURE-----
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list