flathub / flathub/org.qownnotes.QOwnNotes

Incorrect Windowing permissions

Open
#342 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
3
Forks
5
Avg merge
4h 38m
Merged PRs (30d)
10

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.