[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: 3.5 branch kfmclient/KRun problem with local HTML files and
From:       Stephan Kulow <coolo () kde ! org>
Date:       2006-08-13 7:45:17
Message-ID: 200608130945.17961.coolo () kde ! org
[Download RAW message or body]

Am Sonntag, 13. August 2006 01:50 schrieb Kevin Krammer:
> A Portland xdg-utils tester reported a problem when launching a file URL
> with anchor: https://bugs.freedesktop.org/show_bug.cgi?id=7863
>
> Summary:
> kfmclient exec http://host/path#anchor works
> kfmclient exec file:/path#anchor does not work (anchor gets lost)
>
> I tracked it down to
> krun.cpp method KRunMX2::subst
>
> educated guess:
>
> ret << (url.isLocalFile() ? url.path() : url.url());
>
> strips the anchor since isLocalFile() returns true
>
> Is this a bug or intentional?

I think this is an invalid overoptimization. If a .desktop file has %u it can 
handle URLs and shouldn't see paths. But the line in question is pretty old. 
I guess removing this check would work still.

Greetings, Stephan
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic