@ebassi Welp, I got it almost working. I get an error when trying to compile the flatpak thogh...
"ValueError: Namespace Xdp not available"
I import Xdp in python using
gi.require_version('Xdp', '1.0')
from gi.repository import Xdp
It works by running the script with python script.py but not in the flatpak...
Doesn't the org.gnome.Sdk/47 comes with Xdp ?