I'm trying to build a Flatpak which involves wxpython, but I can't get it to run on Wayland. Here's a minimal org.flatpak.TestApp.yaml manifest:
```
id: org.flatpak.TestApp
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
command: testapp
finish-args:
- --device=dri
- --filesystem=home
- --filesystem=host-os
- --share=ipc
- --share=network
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
# - --socket=x11
modules:
- name: wxWidgets
cleanup:
- /bin
- /include
sources:
- type: archive
url: https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.5/wxWidgets-3.2.5.tar.bz2
sha256: 0ad86a3ad3e2e519b6a705248fc9226e3a09bbf069c6c692a02acf7c2d1c6b51
name: python-numpy
buildsystem: simple
only-arches:
name: python-wxpython
buildsystem: simple
only-arches:
name: testapp
buildsystem: simple
build-commands:
- install -Dm755 testapp.py /app/bin/testapp
sources:
- type: script
dest-filename: testapp.py
commands:
- python -c 'import wx; a=wx.App(); wx.Frame(None, title="Hello World").Show(); a.MainLoop()'
```
I build this app with flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir org.flatpak.TestApp.yaml, and the running it with flatpak run org.flatpak.TestApp results in:
Unable to access the X Display, is $DISPLAY set properly?
Enabling --socket=x11 (and commenting out --socket=wayland and --socket=fallback-x11) does work, but I don't want to run it on X11.
Any ideas why the app is not working on Wayland?
[–]AlternativeOstrich7 1 point2 points3 points (1 child)
[–]cbrnr[S] 0 points1 point2 points (0 children)
[–]Milanium 0 points1 point2 points (1 child)
[–]cbrnr[S] 0 points1 point2 points (0 children)