GithubHelp home page GithubHelp logo

Comments (14)

pchmykh avatar pchmykh commented on June 10, 2024 1

Not actually, but If you see related opened issue, please share. Thank you for your time!

from cartridges.

kra-mo avatar kra-mo commented on June 10, 2024

Does xdg-open steam://rungameid/570 work when ran inside your terminal?

from cartridges.

pchmykh avatar pchmykh commented on June 10, 2024

Behavior of the app now has been changed. I have no longer any errors, just "Dota 2 launched" notification, but nothing happens. xdg-open steam://rungameid/570 is working, Steam is starting and launching Dota 2 game.

from cartridges.

kra-mo avatar kra-mo commented on June 10, 2024

Are you running GNOME Wayland?

from cartridges.

pchmykh avatar pchmykh commented on June 10, 2024

I believe yes, ~$ echo $XDG_SESSION_TYPE returns wayland.
Debugging information now looking like this:

53:18 - DEBUG: Starting page.kramo.Cartridges v2.8.3 (release)
53:18 - DEBUG: Python version: 3.11.9 (main, Nov 10 2011, 15:00:00) [GCC 13.2.0]
53:18 - DEBUG: Flatpak version: Flatpak 1.15.8
53:18 - DEBUG: Platform: Linux-6.8.8-300.fc40.x86_64-x86_64-with-glibc2.38
53:18 - DEBUG: 	System: Linux
53:18 - DEBUG: 	Node: fedora
53:18 - DEBUG: 	Release: 6.8.8-300.fc40.x86_64
53:18 - DEBUG: 	Version: #1 SMP PREEMPT_DYNAMIC Sat Apr 27 17:53:31 UTC 2024
53:18 - DEBUG: 	Machine: x86_64
53:18 - DEBUG: 	Processor: 
53:18 - DEBUG: ─────────────────────────────────────
53:18 - DEBUG: New store game Warsow (flatpak_net.warsow.Warsow)
53:18 - DEBUG: DisplayManager done for flatpak_net.warsow.Warsow
53:18 - DEBUG: New store game Proton 8.0 (steam_2348590)
53:18 - DEBUG: DisplayManager done for steam_2348590
53:18 - DEBUG: New store game Proton Experimental (steam_1493710)
53:18 - DEBUG: DisplayManager done for steam_1493710
53:18 - DEBUG: New store game Steam Linux Runtime 2.0 (soldier) (steam_1391110)
53:18 - DEBUG: DisplayManager done for steam_1391110
53:18 - DEBUG: New store game Proton EasyAntiCheat Runtime (steam_1826330)
53:18 - DEBUG: DisplayManager done for steam_1826330
53:18 - DEBUG: New store game Dota 2 (steam_570)
53:18 - DEBUG: DisplayManager done for steam_570
53:18 - DEBUG: New store game Steam Linux Runtime 3.0 (sniper) (steam_1628350)
53:18 - DEBUG: DisplayManager done for steam_1628350
53:18 - DEBUG: New store game Quake Live (steam_282440)
53:18 - DEBUG: DisplayManager done for steam_282440
53:18 - DEBUG: New store game Steamworks Common Redistributables (steam_228980)
53:18 - DEBUG: DisplayManager done for steam_228980
53:18 - DEBUG: New store game Steam Linux Runtime 1.0 (scout) (steam_1070560)
53:18 - DEBUG: DisplayManager done for steam_1070560
53:20 - INFO: Launching `flatpak-spawn --host /bin/sh -c 'xdg-open steam://rungameid/570'`
53:46 - INFO: Launching `flatpak-spawn --host /bin/sh -c 'xdg-open steam://rungameid/570'`
─────────────────────────────────────
57:14 - DEBUG: Starting page.kramo.Cartridges v2.8.3 (release)
57:14 - DEBUG: Python version: 3.11.9 (main, Nov 10 2011, 15:00:00) [GCC 13.2.0]
57:14 - DEBUG: Flatpak version: Flatpak 1.15.8
57:14 - DEBUG: Platform: Linux-6.8.8-300.fc40.x86_64-x86_64-with-glibc2.38
57:14 - DEBUG: 	System: Linux
57:14 - DEBUG: 	Node: fedora
57:14 - DEBUG: 	Release: 6.8.8-300.fc40.x86_64
57:14 - DEBUG: 	Version: #1 SMP PREEMPT_DYNAMIC Sat Apr 27 17:53:31 UTC 2024
57:14 - DEBUG: 	Machine: x86_64
57:14 - DEBUG: 	Processor: 
57:14 - DEBUG: ─────────────────────────────────────
57:14 - DEBUG: New store game Warsow (flatpak_net.warsow.Warsow)
57:14 - DEBUG: DisplayManager done for flatpak_net.warsow.Warsow
57:14 - DEBUG: New store game Proton 8.0 (steam_2348590)
57:14 - DEBUG: DisplayManager done for steam_2348590
57:14 - DEBUG: New store game Proton Experimental (steam_1493710)
57:14 - DEBUG: DisplayManager done for steam_1493710
57:14 - DEBUG: New store game Steam Linux Runtime 2.0 (soldier) (steam_1391110)
57:14 - DEBUG: DisplayManager done for steam_1391110
57:14 - DEBUG: New store game Proton EasyAntiCheat Runtime (steam_1826330)
57:14 - DEBUG: DisplayManager done for steam_1826330
57:14 - DEBUG: New store game Dota 2 (steam_570)
57:14 - DEBUG: DisplayManager done for steam_570
57:14 - DEBUG: New store game Steam Linux Runtime 3.0 (sniper) (steam_1628350)
57:14 - DEBUG: DisplayManager done for steam_1628350
57:14 - DEBUG: New store game Quake Live (steam_282440)
57:14 - DEBUG: DisplayManager done for steam_282440
57:14 - DEBUG: New store game Steamworks Common Redistributables (steam_228980)
57:14 - DEBUG: DisplayManager done for steam_228980
57:14 - DEBUG: New store game Steam Linux Runtime 1.0 (scout) (steam_1070560)
57:14 - DEBUG: DisplayManager done for steam_1070560
57:16 - INFO: Launching `flatpak-spawn --host /bin/sh -c 'xdg-open steam://rungameid/282440'`
─────────────────────────────────────
59:06 - DEBUG: Starting page.kramo.Cartridges v2.8.3 (release)
59:06 - DEBUG: Python version: 3.11.9 (main, Nov 10 2011, 15:00:00) [GCC 13.2.0]
59:06 - DEBUG: Flatpak version: Flatpak 1.15.8
59:06 - DEBUG: Platform: Linux-6.8.8-300.fc40.x86_64-x86_64-with-glibc2.38
59:06 - DEBUG: 	System: Linux
59:06 - DEBUG: 	Node: fedora
59:06 - DEBUG: 	Release: 6.8.8-300.fc40.x86_64
59:06 - DEBUG: 	Version: #1 SMP PREEMPT_DYNAMIC Sat Apr 27 17:53:31 UTC 2024
59:06 - DEBUG: 	Machine: x86_64
59:06 - DEBUG: 	Processor: 
59:06 - DEBUG: ─────────────────────────────────────
59:06 - DEBUG: New store game Warsow (flatpak_net.warsow.Warsow)
59:06 - DEBUG: DisplayManager done for flatpak_net.warsow.Warsow
59:06 - DEBUG: New store game Proton 8.0 (steam_2348590)
59:06 - DEBUG: DisplayManager done for steam_2348590
59:06 - DEBUG: New store game Proton Experimental (steam_1493710)
59:06 - DEBUG: DisplayManager done for steam_1493710
59:06 - DEBUG: New store game Steam Linux Runtime 2.0 (soldier) (steam_1391110)
59:06 - DEBUG: DisplayManager done for steam_1391110
59:06 - DEBUG: New store game Proton EasyAntiCheat Runtime (steam_1826330)
59:06 - DEBUG: DisplayManager done for steam_1826330
59:06 - DEBUG: New store game Dota 2 (steam_570)
59:06 - DEBUG: DisplayManager done for steam_570
59:06 - DEBUG: New store game Steam Linux Runtime 3.0 (sniper) (steam_1628350)
59:06 - DEBUG: DisplayManager done for steam_1628350
59:06 - DEBUG: New store game Quake Live (steam_282440)
59:06 - DEBUG: DisplayManager done for steam_282440
59:06 - DEBUG: New store game Steamworks Common Redistributables (steam_228980)
59:06 - DEBUG: DisplayManager done for steam_228980
59:06 - DEBUG: New store game Steam Linux Runtime 1.0 (scout) (steam_1070560)
59:06 - DEBUG: DisplayManager done for steam_1070560
59:08 - INFO: Launching `flatpak-spawn --host /bin/sh -c 'xdg-open steam://rungameid/570'`
01:01 - INFO: Launching `flatpak-spawn --host /bin/sh -c 'xdg-open steam://rungameid/570'`

from cartridges.

kra-mo avatar kra-mo commented on June 10, 2024

I mean the game is running on the host so Cartridges really shouldn't have anything to do with this. It's an XWayland issue, but I'm not sure how it could be resolved. What output do you see in the terminal when you run Cartridges via flatpak run page.kramo.Cartridges and then try to launch the game?

from cartridges.

pchmykh avatar pchmykh commented on June 10, 2024
~$ flatpak run page.kramo.Cartridges
root INFO - Launching `flatpak-spawn --host /bin/sh -c 'xdg-open steam://rungameid/570'`
INFO:root:https://github.com/flathub/com.valvesoftware.Steam/wiki
INFO:root:Will set XDG dirs prefix to /home/pchmykh/.var/app/com.valvesoftware.Steam
DEBUG:root:Checking input devices permissions
WARNING:root:Missing permissions for input devices
INFO:root:Overriding TZ to Europe/Minsk
steam.sh[2]: Running Steam on org.freedesktop.platform 23.08 64-bit
steam.sh[2]: STEAM_RUNTIME is enabled automatically
setup.sh[75]: Steam runtime environment up-to-date!
steam.sh[2]: Error: The unofficial Steam Flatpak app requires a correctly-configured desktop
session, which must provide the DISPLAY environment variable to the
D-Bus session bus activation environment.

On systems that use systemd --user, the DISPLAY environment variable must
also be present in the systemd --user activation environment.

This is usually achieved by running:

    dbus-update-activation-environment DISPLAY

during desktop environment startup.

For more details, please see:
https://github.com/ValveSoftware/steam-for-linux/issues/10554
/home/pchmykh/.var/app/com.valvesoftware.Steam/.local/share/Steam/steam.sh: line 85: XDG_CURRENT_DESKTOP: unbound variable

from cartridges.

kra-mo avatar kra-mo commented on June 10, 2024

Yeah, I cannot reproduce the issue :/

It should inherit DISPLAY from your host, I'm not sure what the problem is here.

from cartridges.

kra-mo avatar kra-mo commented on June 10, 2024

I mean I guess you could try running what it recommends, dbus-update-activation-environment DISPLAY although I have no idea what that does :D

from cartridges.

pchmykh avatar pchmykh commented on June 10, 2024

Executing ~$ dbus-update-activation-environment DISPLAY with further relogin does the trick, but after reboot it comes back.

from cartridges.

kra-mo avatar kra-mo commented on June 10, 2024

You should run it on desktop environment startup like it suggests.

https://wiki.archlinux.org/title/Autostarting

from cartridges.

pchmykh avatar pchmykh commented on June 10, 2024

I have created and enabled user unit

~$ cat ~/.config/systemd/user/exportingDisplay.service 
[Unit]
Description=dbus-update-activation-environment DISPL
[Service]
ExecStart=dbus-update-activation-environment DISPLAY
[Install]
WantedBy=default.target

But it doesn't work for me. I can realize that it isn't Cartridges-related, so maybe you can advise me where I can fill issue? Is it about Steam or maybe Gnome-shell? Not very experienced user here.

from cartridges.

kra-mo avatar kra-mo commented on June 10, 2024

If other apps work fine, probably Steam. You could file an issue on https://github.com/ValveSoftware/steam-for-linux/issues

from cartridges.

kra-mo avatar kra-mo commented on June 10, 2024

Ah wait, you already did ^^

from cartridges.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.