Issues between Siril 1.4.0 Flatpak and AppImage with catalog installer and GraXpert

With Flatpak I am getting an error with it not respecting the chosen theme, it is always in Light mode but more importantly attempting to use the Siril_Catalog_Installer script gives me the below error message

14:16:01: Starting script /home/tdg/.var/app/org.siril.Siril/data/siril-scripts/core/Siril_Catalog_Installer.py
14:16:01: /home/tdg/.var/app/org.siril.Siril/data/siril/venv/lib/python3.13/site-packages/astropy/config/paths.py:55: AstropyUserWarning: XDG_CONFIG_HOME is set to '/home/tdg/.var/app/org.siril.Siril/config', but the default location, /home/tdg/.astropy/config, already exists, and takes precedence. This environment variable will be ignored.
14:16:01:   return set_temp_config._get_dir_path(rootname)
14:16:01: WARNING: could not connect to display 
14:16:01: WARNING: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
14:16:01: WARNING: Could not load the Qt platform plugin "xcb" in "" even though it was found.
14:16:01: WARNING: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
14:16:01: Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-brcm, wayland-egl, wayland, xcb.
14:16:02: Python process (PID: 11604) terminated by signal 6

And while the catalog installer works in the AppImage, GraXpert-AI doesn’t and gives the below error

14:29:53: Starting script /home/tdg/.local/share/siril-scripts/processing/GraXpert-AI.py
14:29:53: nvcc not found in PATH, trying torch fallback
14:29:53: Torch unavailable, unable to confirm CUDA availability
14:29:54: Installing onnxruntime-rocm. This may take a few seconds...
14:29:54: Looking in links: https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4/
14:29:54: Failed to install onnxruntime-rocm
14:29:54: Failed to install onnxruntime-rocm: Command '['/home/tdg/.local/share/siril/venv/bin/python3', '-m', 'pip', 'install', '-f', 'https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4/', 'onnxruntime-rocm']' returned non-zero exit status 1.
14:29:54: Falling back to default onnxruntime package.
14:29:54: Installing onnxruntime. This may take a few seconds...
14:29:55: Failed to install onnxruntime
14:29:55: Error processing onnxruntime: Command '['/home/tdg/.local/share/siril/venv/bin/python3', '-m', 'pip', 'install', 'onnxruntime']' returned non-zero exit status 1.
14:29:55: Failed to install default onnxruntime: Failed to install or verify package onnxruntime
14:29:55: Traceback (most recent call last):
14:29:55:   File "/home/tdg/.local/share/siril-scripts/processing/GraXpert-AI.py", line 84, in <module>
14:29:55:     import onnxruntime
14:29:55: ModuleNotFoundError: No module named 'onnxruntime'
14:29:55: Python process (PID: 331546) exited with status 1

The script automatically installed it for the FlatPak version and I manually installed it when the AppImage version failed the first time

sudo dnf install onnxruntime-rocm
Updating and loading repositories:
Repositories loaded.
Package "onnxruntime-rocm-1.20.1-23.fc43.x86_64" is already installed.

Nothing to do.

My system is Nobara Linux 43 (KDE Plasma Desktop Edition) x86_64

I have encountered the same issue and found a solution here.

Long story short:
I fixed the issue by installing libxcb-cursor-dev with the command:

sudo apt install libxcb-cursor-dev