wxpythonwxwidgetsmobaxtermwxglade

wxwidgets minimal works on local display but not on x terminal


I have two wxwidgets hosts:

The vbox host will play to an MobaXterm Personal Edition v24.0 5204 aka vbox-x-server. The native-x-server will not. The native host will play to its own local display.

The native-x-server will just stop without elaborating a window or dumping messages. This includes but is probably not limited to:

The library is clearly attempting to access the X server. If you bypass the ssh tunnelling, then MobaXterm will pop up a dialog asking if you allow the application to access it. However, no windows show up.

I'm trying to migrate from the vbox environment to the native environment.

Is there some magic environment twiddle that might illume the problem?

I'm trying to avoid building wxWidgets to debug this problem. I've straced the apps without any usable information revealing itself.


Solution

  • On the system where wxWidgets wxglade was working:

    [me@williams ~]$ which wxglade
    alias wxglade='GDK_BACKEND=x11 /usr/bin/wxglade'
    

    On the system where wxWidgets wxglade was not working:

    [me@vesper ~]$ which wxglade
    /usr/bin/wxglade
    

    Eliciting the GDK_BACKEND=x11 fixes the problem everywhere else I've tried.

    [me@vesper temp]$ python bare.py # this gets you no app
    
    [me@vesper temp]$ GDK_BACKEND=x11 python bare.py # this gets you an app
    

    This looks like one of the many Wayland vs X11 problems.

    I think I'm fixed for now.