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

Only using XWayland on Flatpak? #3696

Open
marcelohdez opened this issue Apr 14, 2024 · 0 comments
Open

Only using XWayland on Flatpak? #3696

marcelohdez opened this issue Apr 14, 2024 · 0 comments
Labels
bug:unconfirmed Someone works on identifying the issue

Comments

@marcelohdez
Copy link

Describe the bug

Using the Heroic Games Launcher (com.heroicgameslauncher.hgl) flatpak, the launcher only runs under XWayland, which is very noticeable on my laptop which uses 1.5x scaling on Sway making HGL blurry. I have tried disabling the X11 socket, keeping only the Wayland one enabled but it fails with the following output:

[13:0413/230557.633016:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[13:0413/230558.451603:ERROR:ozone_platform_x11.cc(244)] Missing X server or $DISPLAY
[13:0413/230558.451625:ERROR:env.cc(257)] The platform failed to initialize.  Exiting.
/app/bin/heroic-run: line 6:    13 Segmentation fault      (core dumped) zypak-wrapper /app/bin/heroic/heroic "$@"

For the log when HGL is run with default permissions (and therefore on XWayland) see logs attached.

Add logs

(22:58:08) INFO:    [Legendary]:        Legendary location: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary
(22:58:08) INFO:    [Gog]:              GOGDL location: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
(22:58:08) INFO:    [Connection]:       Connectivity: check-online
(22:58:08) INFO:    [Connection]:       Pinging external endpoints
(22:58:08) INFO:    [Gog]:              Checking for existing gog manifests
(22:58:08) INFO:    [Backend]:          DRM module staus {
  "oimompecagnajdejgnnjijobebaeigek": {
    "status": "new",
    "title": "Widevine Content Decryption Module",
    "version": "4.10.2710.0"
  }
}
(22:58:08) WARNING: [Backend]:          Failed to register protocol with OS.
(22:58:08) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/legendaryConfig/legendary /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary --version
(22:58:08) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json --version
(22:58:08) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH=/home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/nile_config /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/nile --version
(22:58:08) INFO:    [Connection]:       Connectivity: online
(22:58:08) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth
(22:58:08) INFO:    [Backend]:          User Not Found, removing it from Store
(22:58:08) INFO:    [Gog]:              Checking if login is valid
(22:58:08) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth
(22:58:08) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(22:58:09) INFO:    [Frontend]:         Refreshing undefined Library
(22:58:09) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager
(22:58:09) INFO:    [Legendary]:        Refreshing library...
(22:58:09) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth
(22:58:09) INFO:    [Backend]:          Frontend Ready
(22:58:09) INFO:    [Gog]:              Getting GOG library
(22:58:09) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth
(22:58:09) INFO:    [Backend]:          
System Information:
CPU: 16x AMD Ryzen 7 7840U w/ Radeon  780M Graphics
Memory: 29.22 GB (used: 4.66 GB)
GPUs:
  GPU 0:
    Name: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1
    IDs: D=15bf V=1002 SD=0006 SV=f111
    Driver: amdgpu
OS: Fedora Linux 40 (Forty) (linux)

The current system is not a Steam Deck
We are running inside a Flatpak container

Software Versions:
  Heroic: 2.14.1 Flame Emperor Sabo
  Legendary: 0.20.34 Direct Intervention
  gogdl: 1.0.1
  Nile: 1.0.2 Jonathan Joestar

(22:58:09) INFO:    [Backend]:          Checking for current version changelog
(22:58:09) INFO:    [Gog]:              Saved username to config file
(22:58:10) INFO:    [Gog]:              Saved games data
(22:58:10) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(22:58:10) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/mhdez/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth
(22:58:10) INFO:    [Gog]:              Found 0 game(s) to update
(22:58:10) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(22:58:10) INFO:    [Winetricks]:       Downloading Winetricks
(22:58:13) INFO:    [WineDownloader]:   Updating wine versions info
(22:58:13) INFO:    [WineDownloader]:   Fetching upstream information...
(22:58:14) INFO:    [Backend]:          Starting the Download Queue
(22:58:15) INFO:    [WineDownloader]:   wine versions updated

Steps to reproduce

  1. Open HGL
  2. Get window stats, e.g. for Sway: swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused)'
  3. See that it is running on XWayland.
  4. Attempt to remove X11 socket from permissions in Flatseal
  5. Heroic fails to open

Expected behavior

For HGL to support running under Wayland, as noted in #1963 (comment)

Screenshots

No response

Heroic Version

Latest Stable (Flatpak)

System Information

  • OS [e. g. "Ubuntu"]: Fedora 40 Beta
  • WM: Sway 1.9

Additional information

No response

@marcelohdez marcelohdez added the bug:unconfirmed Someone works on identifying the issue label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:unconfirmed Someone works on identifying the issue
Projects
None yet
Development

No branches or pull requests

1 participant