[Gambas-user] Cannot download OfflineHelp because Desktop.NetworkAvailable incorrectly returns False

Benoît Minisini gambas at ...1...
Sat Nov 29 15:25:40 CET 2014


Le 28/11/2014 23:32, Benoît Minisini a écrit :
> Le 28/11/2014 22:47, T Lee Davidson a écrit :
>> I couldn't download the offline Help and wanted to know why.
>>
>> I have found that NetworkAvailable_Read() in Desktop.class is relying on
>> '/sbin' being configured in the user's path. On my system, it is not.
>> And, so `ifconfg` and `ip` from a console both produce, "command not
>> found".
>>
>> It is necessary to use the absolute path for these commands, ie.
>> '/sbin/ifconfig' and '/sbin/ip', for them to work on my system.
>>
>> Note: For anyone else experiencing this issue, I have attached two
>> files. One is a script that will update the offline help for you. And,
>> the second is a Gambas command-line app that will let you know if the
>> help needs updating.
>>
>> Note to Benoît: Stat.LastModified returns a localized time and needs to
>> be corrected to match sTimestamp. (But, of course, I may be confused
>> again.)
>>
>>
>
> You get two points there, and I have two more bugs to fix.
>

It should be fixed in revision #6685.

Regards,

-- 
Benoît Minisini




More information about the User mailing list