[Lazarus] ExecuteProcess and URL

Luis R. Hilario B. luisdigital at gmail.com
Thu Aug 12 17:55:01 CEST 2010


Attached.

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: salida.txt.tar.gz
Type: application/x-gzip
Size: 54067 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20100812/fd1b27a2/attachment-0004.bin>


More information about the Lazarus mailing list