Application doesn't close inside flatpak, but local build works
May 4, 2025
J
Jaume
#1
Hello,
I’m not sure if this place is a good place to ask for help, If it’s not, simply delete it, and sorry.
I’m trying to help bring dune dynasty project (a reverse enginering project of dune 2 game) to flatpak, we get the project compile and run fine, but when we exit the game, it doesn’t work. The person maintaining it, seems to have it working with the linux subsystem for windows with ubuntu, in X11, but with Fedora & Wayland doesn’t seem to stop, I need to run a kill command or similar to get it to stop. (Black window/full-screen is always there)
Any idea of what it can be?
Thanks,
Jaume.
C
CodedOre
#2
Doesn’t sound like a Flatpak issue to me.
You mentioned that you tested:
WSL with Ubuntu and X11
Fedora with Wayland
So, this could be just an issue with your Wayland code (assuming you have Wayland support), like not releasing the window after closing the game…
So, it would be good to first test if this is reproduceable under Fedora with X11 as well.
If you want to check under Flatpak as well, you could use the arguments --nosocket and --socket to force one system.
For example,
flatpak run --nosocket=x11 --nosocket=fallback-x11 --socket=wayland APP_ID
would give the app only access to the Wayland server, while
flatpak run --socket=x11 --nosocket=fallback-x11 --nosocket=wayland APP_ID
Right, I did assume you have Wayland support for my previous comment…
My bad.
Anyway, if you used the same Flatpak on both Steam Deck and your other System, it doesn’t sound to me like its an issue with Flatpak itself.
Maybe related to some GNOME Shell extension or hardware/software correlation?
O
Oceantide2000
#5
I can confirm the same issue (on closing the software a black screen window remains). Using gnome on nix os and using the flatpak version of dune dynasty on a Thinkpad T14 gen 2.
nothing that I added myself, but the Nix OS Gnome Desktop image likely has some pre-installed, I’d have to do some digging. Per gnome extensions app “no installed extensions” The OS install is was only a few days old when I installed Dune Dynasty, so there really wasn’t that much different from a stock install, basically just installed flatpak, gedit, steam, git, and cmake. Nothing that seems like it should affect the desktop environment.
per gnome software:
add-ons:
adwaita theme
ffmpeg extension with extra codecs
freedesktop platform
freedesktop platform
gnome application platform version 47
gnome application platform version 48
intel vaapi driver
intel vaapi driver
mesa
mesa
mesa
mesa (extra)
mesa (extra)
openh264