Akaflieg-Freiburg / enroute

A free navigation app for VFR pilots
https://akaflieg-freiburg.github.io/enroute/
GNU General Public License v3.0
111 stars 28 forks source link

Unable to run flatpak on desktop Linux (Session management error) #293

Closed DeniTCH closed 1 year ago

DeniTCH commented 1 year ago

Describe the bug I am unable to run the flatpak on desktop Linux (Pop OS 22.04LTS). The app window never appears. There seems to be some kind of a permissions issue.

I get the following output in the terminal:

flatpak run de.akaflieg_freiburg.enroute 
qt.gui.icc: fromIccProfile: failed size sanity 2
qt.gui.icc: fromIccProfile: failed size sanity 2
Gtk-Message: 19:45:50.038: Failed to load module "canberra-gtk-module"
Gtk-Message: 19:45:50.038: Failed to load module "canberra-gtk-module"
Qt: Session management error: None of the authentication protocols specified are supported
[ INFO ]  "{unknown}[General]: GPU Identifier: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.49, 6.2.6-76060206-generic)"
qt.positioning.geoclue2: Unable to start the client: "org.freedesktop.DBus.Error.AccessDenied" "Geolocation disabled for UID 1000"

To Reproduce Steps to reproduce the behavior:

See above.

Expected behavior I expect the app to start

Desktop (please complete the following information):

Smartphone (please complete the following information):

kebekus commented 1 year ago

Thank you for the report. The message arrived, but I am overwhelmed with my job now. Please give me a few days, and I will get back to you as soon as possible.

kebekus commented 1 year ago

@DeniTCH I apologize for the late answer; we're spending a few days with the family in London. I have a (technically much simpler) calculator app that uses the same underlying technology platform,

Please check if the problem shows with that app as well. This might be much easier to debug. Also, there are two graphical systems in Linux: X11 and Wayland. Could you let me know which one you are using? Some systems allow choosing the GUI system at login. If that is also true on your system, please check if the problem shows for the two systems or just for one of them.

I appreciate your help!

kebekus commented 1 year ago

Update: I can reproduce the issue in a virtual machine.

kebekus commented 1 year ago

I found that the app does work fine when started from the command line like so:

QT_QPA_PLATFORM=xcb flatpak run de.akaflieg_freiburg.enroute

I am still trying to make sense of this…

kebekus commented 1 year ago

The issue should be fixed with the latest update.

@DeniTCH: Thank you for the report. Please feel free to re-open the issue if the problem persists for you.