[Lazarus] ExecuteProcess and URL

Luis R. Hilario B. luisdigital at gmail.com
Thu Aug 12 19:19:32 CEST 2010


> But it
> definitely doesn't start with
> file:///

That was the problem. I wonder how it worked for many years.

Thanks for all your help.

2010/8/12 Michael Van Canneyt <michael at freepascal.org>:
>
> Try making a shorter command-line:
>
> 26519 execve("/usr/lib/chromium-browser/chrome",
> ["/usr/lib/chromium-browser/chrome", "/home/luis/Documentos/Proyectos/"...],
> [/* 82 vars */] <unfinished ...>
>
> As you can see, we can't see what the actual URL is it gets. But it
> definitely doesn't start with
> file:///
>
>
>
> Michael.
>
> On Thu, 12 Aug 2010, Luis R. Hilario B. wrote:
>
>> 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
>>
>
> --
> _______________________________________________
> 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