flathub / com.synology.SynologyDrive

https://flathub.org/apps/details/com.synology.SynologyDrive
7 stars 10 forks source link

Does not start on F33/F34 #13

Closed bocekm closed 1 year ago

bocekm commented 2 years ago

Reproducer:

Error:

$ flatpak run com.synology.SynologyDrive
lib path = '/app/extra/SynologyDrive/lib/plugins'
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Qt: Session management error: None of the authentication protocols specified are supported
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Gtk-Message: 17:59:55.161: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:59:55.161: Failed to load module "pk-gtk-module"
Gtk-Message: 17:59:55.161: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:59:55.161: Failed to load module "pk-gtk-module"
Qt: Session management error: None of the authentication protocols specified are supported
QLayout: Attempting to add QLayout "" to TutorialPanel "tutorial_panel", which already has a layout
QLayout: Attempting to add QLayout "" to TutorialPanel "tutorial_panel", which already has a layout
QLayout: Attempting to add QLayout "" to TutorialPanel "tutorial_panel", which already has a layout
QLayout: Attempting to add QLayout "" to TutorialPanel "tutorial_panel", which already has a layout
QLayout: Attempting to add QLayout "" to TutorialDiagram "", which already has a layout
QLayout: Attempting to add QLayout "" to TutorialDiagram "", which already has a layout
sh: line 1: /sbin/udevadm: No such file or directory
sh: line 1: /sbin/ifconfig: No such file or directory
bocekm commented 2 years ago

After running unset SESSION_MANAGER the Qt: Session management error is gone. BTW:

$ ll /sbin/udevadm
lrwxrwxrwx. 1 root root 14 Jul 20 19:04 /sbin/udevadm -> ../bin/udevadm
$ ll /sbin/ifconfig
-rwxr-xr-x. 1 root root 81392 Aug  6  2020 /sbin/ifconfig
bocekm commented 2 years ago

The same happens on Fedora 34.

archdron commented 2 years ago

Fedora 34

The wayland and fallback-x11 sockets are enabled On Wayland, flatpak run com.synology.SynologyDrive initially produces:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

When launched with the QT_QPA_PLATFORM=wayland variable, the output changes to:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

It looks like a wayland-specific thing. Perhaps, the wayland platform plugin can be added in somehow? The AUR package for synology-cloud-station was patched to run on wayland, so it may be a good starting point: https://aur.archlinux.org/packages/synology-cloud-station-drive/


Setting the QT_QPA_PLATFORM=xcb variable as seen in the patch in the link above and having only x11 socket enabled solved the problem for me.

bryanpaget commented 1 year ago

Does not start on Fedora 36 Silverblue.

[bryan@fedora ~]$ flatpak run com.synology.SynologyDrive
[bryan@fedora ~]$ Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Qt: Session management error: None of the authentication protocols specified are supported
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Gtk-Message: 08:52:04.361: Failed to load module "canberra-gtk-module"
Gtk-Message: 08:52:04.361: Failed to load module "canberra-gtk-module"
Qt: Session management error: None of the authentication protocols specified are supported
[bryan@fedora ~]$ QT_QPA_PLATFORM=wayland flatpak run com.synology.SynologyDrive
[bryan@fedora ~]$ Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.
lil5 commented 1 year ago

I've tested in gnome boxes fedora silverblue gnome 37 and it work please update and if it doesn't work message me back here and I'll reopen

Fixed as of 3.2.1