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

Make gamescope's "Switch To Desktop" quit steam #187

Merged

Conversation

shocklateboy92
Copy link
Member

@shocklateboy92 shocklateboy92 commented Aug 27, 2024

The "Exit Steam" button disappears when running in gamescope, so this is the only way I can think of to quit properly.

@ABeltramo
Copy link
Member

ABeltramo commented Aug 28, 2024

Makes sense, shall we wrap that execution in a conditional based on the env variable RUN_GAMESCOPE?
I'd like to keep the ability to "switch to desktop" when running in Sway

@shocklateboy92
Copy link
Member Author

So, steam doesn't have a "Switch To Desktop" button when running in sway:
image

presumably because it knows it's already running in a "desktop" and just has "Exit Steam" instead, which AFAICT does not invoke that script.

@ABeltramo
Copy link
Member

It should be the "Exit big picture mode" button, no?
I'll give it a go on my setup, I can't remember what is the menu on Gamescope from the top of my head..

@shocklateboy92
Copy link
Member Author

shocklateboy92 commented Aug 28, 2024

I just tested it. "Exit big picture mode" does not run this script. I just kills the steam tenfoot window and opens the main window.

When running in gamescope, steam thinks it's running on the steam deck which has no window manager or session underneath, so it launches this script (or the version of it on steamos) that creates a new session with KDE plasma and puts the user into it.

@ABeltramo
Copy link
Member

ABeltramo commented Sep 2, 2024

I've tested this quickly, and it seems that it doesn't get triggered when running in Sway.

I guess we could probably run Sway and switch Steam to the desktop mode similar to how they do it in the Steam Deck by running KDE, but this looks good enough for now. Thanks!

@ABeltramo ABeltramo merged commit 853cad4 into games-on-whales:master Sep 2, 2024
@shocklateboy92 shocklateboy92 deleted the features/gamescope-shutdown branch September 3, 2024 15:59
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

Successfully merging this pull request may close these issues.

2 participants