Ferdium, Flatpak, Wayland...
fuelflo opened this issue · comments
Avoid duplicates
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issues tracker for a bug report similar to mine, in vain
Ferdium Version
6.7.0
What Operating System are you using?
Other Linux
Operating System Version
Arch Linux
What arch are you using?
x64
Last Known Working Ferdium version
No response
Expected Behavior
Ferdium Flatpak starts when forcing Wayland.
Actual Behavior
Ferdium does not start forcing Wayland.
flatpak run org.ferdium.Ferdium
[2:0121/200732.109058:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY
[2:0121/200732.109092:ERROR:env.cc(255)] The platform failed to initialize. Exiting.
Steps to reproduce
Set Ferdium flatpak to only use wayland, using Flatseal.
Try to start Ferdium.
Debug link
No response
Screenshots
No response
Additional information
No response
Having this natively would be nice! Especially for those of us who uses setups that stretch X11 server capabilities such as fractional DPI settings...
You can use a workaround until then: copy the /var/lib/flatpak/app/org.ferdium.Ferdium/current/active/export/share/applications/org.ferdium.Ferdium.desktop
file to $HOME/.local/share/applications/
and add modify the Exec=
line there by adding:
- before
run
:--socket=wayland --nosocket=x11
- before
@@u %U @@
:--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
In other words:
$ diff -ur /var/lib/flatpak/app/org.ferdium.Ferdium/current/active/export/share/applications/org.ferdium.Ferdium.desktop .local/share/applications/org.ferdium.Ferdium.desktop
--- /var/lib/flatpak/app/org.ferdium.Ferdium/current/active/export/share/applications/org.ferdium.Ferdium.desktop 2024-01-09 09:26:39.123844351 +0100
+++ .local/share/applications/org.ferdium.Ferdium.desktop 2024-01-23 13:21:54.297009525 +0100
@@ -1,6 +1,6 @@
[Desktop Entry]
Name=Ferdium
-Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=ferdium --file-forwarding org.ferdium.Ferdium @@u %U @@
+Exec=/usr/bin/flatpak --socket=wayland --nosocket=x11 run --branch=stable --arch=x86_64 --command=ferdium --file-forwarding org.ferdium.Ferdium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto @@u %U @@
Terminal=false
Type=Application
Icon=org.ferdium.Ferdium
A related workaround: how to add kerberos support.
(use of flatpak override
would be more elegant but it still lacks the capability of pass the extra args unfortunately.)