[Lazarus] ExecuteProcess and URL

Luis R. Hilario B. luisdigital at gmail.com
Thu Aug 12 16:24:56 CEST 2010


The same problem with OpenURL.

"Can you send the output of strace -f ?"

I do not know exactly what you mean, but I have this output in the console:

<unknown program name>(11573)/ ClientApp::doIt: Creating ClientApp
kioclient(11573) ClientApp::kde_open:
KUrl("file:///home/luis/Documentos/Proyectos/klinton/Klinton_fuentes/klintonl/AYUDA/AYUDA.HTML%233.1._La_ventana_de_configuraciones")

The web browser can not find the file with the characters "%23" which
is "#", even if well interpreted in the URL, such as Konqueror.

I manually execute the order, and says the same, but the browser open
the page (the only difference is the symbol):
/usr/bin/www-browser
file:///home/luis/Documentos/Proyectos/klinton/Klinton_fuentes/klintonl/AYUDA/AYUDA.HTML#3.1._La_ventana_de_configuraciones
<unknown program name>(12444)/ ClientApp::doIt: Creating ClientApp
kioclient(12444) ClientApp::kde_open:
KUrl("file:///home/luis/Documentos/Proyectos/klinton/Klinton_fuentes/klintonl/AYUDA/AYUDA.HTML#3.1._La_ventana_de_configuraciones")


2010/8/12 Michael Van Canneyt <michael at freepascal.org>:
>
>
> On Thu, 12 Aug 2010, Luis R. Hilario B. wrote:
>
>> I'll try your option, but I have many years using without problems:
>>
>> Process1.CommandLine := '/usr/bin/www-browser'+
>> ' '+GetCurrentDir+PathDelim+HelpFile+Context;
>>
>>
>> All the problems are after upgrading to Mandriva 2010.1
>
> Can you send the output of strace -f ? It will tell us what arguments the
> www-browser program gets.
>
> Most likely, the www-browser script transforms the URL to something else.
> If this is so, there is little we can do about it.
>
> Michael.
>
>>
>> Thank you.
>>
>> 2010/8/12 Marco van de Voort <marcov at stack.nl>:
>>>
>>> On Wed, Aug 11, 2010 at 10:34:08AM -0400, Luis R. Hilario B. wrote:
>>>>
>>>> I am experiencing a problem with the URLs and some characters. E.g.
>>>>
>>>> file:///home/user1/help/file.html#help
>>>
>>>> It does not work, because the result is:
>>>>
>>>> file:///home/user1/help/file.html%23help
>>>
>>>> Web browsers say "File not found." (FF, Konqueror, Chromium)
>>>>
>>>> I tried TProcess, ExecuteProcess and UTF8Process, without positive
>>>> results.
>>>
>>> These functions are for executing files, and don't take URLS (which are a
>>> web thing)
>>>
>>> Try openurl.
>>>
>>>
>>> --
>>> _______________________________________________
>>> Lazarus mailing list
>>> Lazarus at lists.lazarus.freepascal.org
>>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>
>>
>>
>>
>> --
>> http://luisdigital.com
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
http://luisdigital.com




More information about the Lazarus mailing list