Closed ObscureScience closed 1 year ago
Thanks for the report!
Could you please check the output of echo $XDG_SESSION_TYPE
?
When I run that in a terminal emulator I get:
% echo $XDG_SESSION_TYPE
tty
Which is not what I expected. I've grepped through my homedir, and I'm not setting it myself. Is there an assumption that this need to be manually set when not using a display manager? I start X11 using startx with exec startxfce4 in .xinitrc I'm running Archlinux, so sessions are managed by systemd.
I can however confirm that running XDG_SESSION_TYPE=x11 flatpak run codes.merritt.Nyrna does indeed starts the application in X11 mode.
My understanding is that XDG_SESSION_TYPE
is supposed to be more or less "standard" for checking what sort of session is running.. I am not sure the specifics of how and where that is implemented.
I tried installing Fedora with XFCE, and XDG_SESSION_TYPE
is mapped to x11
as expected so I presume the issue you are seeing is because of your specific setup, and not something like the DE. I believe you should be able to add export XDG_SESSION_TYPE=x11
to your xinitrc to resolve the issue.
Thank you for the clarification. I would argue that the fallback to wayland for non x11 values of XDG_SESSION_TYPE is questionable, now I know the issues and am happy to close the issue.
You make a good point; I will give a think on how to do the check logic so it can pass even if the environment variables are broken.. Thanks! :blue_heart:
I made a change to the session check, now it will only present the error if Wayland is actually detected; if the environment variable is unexpected it will try to load normally and emit an error to console about the unexpected variable. New version pushing to Flathub shortly.. hopefully that will be an improvement.
Thanks for the report and ideas! :blue_heart: :tada:
When I run the flatpak version of this application, installed from flathub, the window show up but states:
I am in fact using X11, using the XFCE4 desktop environment.
Could it be some internal variable forcing wayland, in the flatpak that is causing this? Something equivalent to GDK_BACKEND=wayland for GTK?
In general other QT, GTK2+3+4 and other gui toolkit flatpak applications work fine in this installation.