Skip to content

Incorrect Windowing permissions #342

@hydrian

Description

@hydrian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions