[Gambas-user] Desktop.Type crash in WSL2
Safiur Rahman
isafiur at gmail.com
Tue Feb 21 11:08:01 CET 2023
The followings are application environment:
SHELL : /bin/bash
WSL2_GUI_APPS_ENABLED : 1
WSL_DISTRO_NAME : Ubuntu
NAME : DESKTOP-OLD130M
PWD : /home/dcode
LOGNAME : dcode
HOME : /home/dcode
LANG : en_US.UTF-8
WSL_INTEROP : /run/WSL/534_interop
WAYLAND_DISPLAY : wayland-0
TERM : xterm-256color
USER : dcode
DISPLAY : :0
SHLVL : 0
XDG_RUNTIME_DIR : /mnt/wslg/runtime-dir
WSLENV :
XDG_DATA_DIRS : /usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH : /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program
Files/WindowsApps/MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.3.0_x64__8wekyb3d8bbwe:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Users/Acer/AppData/Local/Microsoft/WindowsApps:/snap/bin
HOSTTYPE : x86_64
PULSE_SERVER : /mnt/wslg/PulseServer
_ : /usr/bin/healthybit
LC_ALL : en_US.UTF-8
TZ : :/etc/localtime
APPMENU_DISPLAY_BOTH : 1
On 2/21/23, Safiur Rahman <isafiur at gmail.com> wrote:
> Hi
>
> I am running a gambas application in Ubuntu and in WSL2. In WSL2,
> Desktop.Type resulted in null value upto gambas 3.17.3 and executed
> silently. Now from gambas 3.18.0 it throws an error and crashes.
>
> For a fix I am using
>
> Try xtype = Desktop.Type
> If xType Then
> ''procedure for linux system
> Els
> ''procedure for MS Windows 11
> EndIf
>
> On Tue, Feb 21, 2023 at 10:04 AM Safiur Rahman <isafiur at gmail.com> wrote:
>
>> Hi
>>
>> While using Desktop.Type in any gambas application (3.18.0) in "Windows
>> subsystem for Linux (WSL2)" crashes the application producing following
>> error. This problem is there with both stable 3.18.0 and development
>> version
>>
>> [gb.gui.base].^^Desktop.GetDesktop.58: #65: Read-only array
>> [gb.gui.base].^^Desktop.GetDesktop.58
>> [gb.gui.base].^^Desktop.Type_Read.66
>>
>> This problem was not there in gambas upto 3.17.3
>>
>> --
>> Regards
>> Safiur Rahman
>>
>
>
> --
> Regards
> Safiur Rahman
>
--
Regards
Safiur Rahman
More information about the User
mailing list