When you try to run /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=QOwnNotes org.qownnotes.QOwnNotes the process just hangs after showing these logs messages.
Gtk-Message: 12:56:27.607: Failed to load module "xapp-gtk3-module"
Gtk-Message: 12:56:27.607: Failed to load module "appmenu-gtk-module"
Warning: Qt: Session management error: Could not open network socket (:0, )
From developing Flatpak apps myself, this looks like a windowing manager system permissions issue. I took a look a the QOwnNotes flatpak application with Flatseal, I noticed the flatpak had the permissions socket=wayland, socket=x11, and socket=fallback-x11. All these parameters are exclusive. fallback-x11 assumes both wayland and x11. So all you need to enable is fallback-x11 in the manifest. If you don't, flatpak first tries wayland and fails or hangs the process on an X11 based system. Once I removed the x11 and wayland parameters with Flatseal, QOwnNotes started properly.
Environment
Linux Mint 21.3 - Mate
QOwnNotes - flatpak stable
When you try to run
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=QOwnNotes org.qownnotes.QOwnNotesthe process just hangs after showing these logs messages.From developing Flatpak apps myself, this looks like a windowing manager system permissions issue. I took a look a the QOwnNotes flatpak application with Flatseal, I noticed the flatpak had the permissions
socket=wayland,socket=x11, andsocket=fallback-x11. All these parameters are exclusive.fallback-x11assumes bothwaylandandx11. So all you need to enable isfallback-x11in the manifest. If you don't, flatpak first tries wayland and fails or hangs the process on an X11 based system. Once I removed thex11andwaylandparameters with Flatseal, QOwnNotes started properly.Environment
Linux Mint 21.3 - Mate
QOwnNotes - flatpak stable