Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run flatpak as a native wayland app #10

Closed
matosjoaops opened this issue Aug 17, 2022 · 3 comments
Closed

Can't run flatpak as a native wayland app #10

matosjoaops opened this issue Aug 17, 2022 · 3 comments

Comments

@matosjoaops
Copy link

When running the flatpak as a native wayland app using the following command:

flatpak run com.logseq.Logseq --enable-features=UseOzonePlatform --ozone-platform=wayland

The app doesn't start and I get the following error message:

LaunchProcess: failed to execvp:
xdg-settings
[3:0818/002507.566126:ERROR:wayland_connection.cc(209)] Failed to connect to Wayland display
[3:0818/002507.566135:ERROR:ozone_platform_wayland.cc(226)] Failed to initialize Wayland platform
[3:0818/002507.566140:ERROR:env.cc(226)] The platform failed to initialize.  Exiting.
/app/bin/run.sh: line 2:     3 Segmentation fault  (core dumped) zypak-wrapper.sh /app/logseq/Logseq "$@"

When running the AppImage with the same arguments this issue isn't present.

This problem was also mentioned in the comments of this issue but it seems to be unrelated.

@kanru
Copy link
Collaborator

kanru commented Sep 1, 2022

Hi, the latest version should have better wayland support.

Try this

flatpak run --socket=wayland com.logseq.Logseq --ozone-platform-hint=auto \
    --enable-features=WaylandWindowDecorations

@hreynier
Copy link

hreynier commented Sep 2, 2022

@kanru thanks, can confirm this works after updating. When I run this command I still get some launch process related errors but doesn't seem to impact the app.

LaunchProcess: failed to execvp:
xdg-settings
[3:0902/120015.235528:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket
/run/dbus/system_bus_socket: No such file or directory

@matosjoaops
Copy link
Author

@kanru The command you provided also works for me. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants