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

Add new "GameMode" option which implements org.freedesktop.portal.GameMode #284

Merged
merged 19 commits into from
Nov 27, 2023

Conversation

jrelvas-ipc
Copy link
Contributor

Currently, users have to manually edit configuration to use gamemode by setting a custom launcher. This is bad because the majority of distros have gamemode present. Furthermore, our flatpak requires an extension to be installed separately for gamemoderun to be available, which further degrades user experience.

This PR fixes that by implementing support for requesting gamemode to be enabled via desktop portals, which is done by default (for both player and studio). This should work out of the box for most distros and for flatpak installs.

Note: VinegarBridge will depend on the new internal/bus package for some of its functionality, so this PR is a prerequisite for implementing it.

@jrelvas-ipc
Copy link
Contributor Author

Systems without dbus and/or desktop portals will simply not use this new functionality. There should be no regressions.

@jrelvas-ipc
Copy link
Contributor Author

I've applied your feedback and suggestions. I'm ready for a second review.

follows vinegar code style choices better
this sounds way better

Signed-off-by: Jrelvas <[email protected]>
@lunarlattice0 lunarlattice0 merged commit e1c74de into vinegarhq:master Nov 27, 2023
@RackYican
Copy link

It is actived by default or we need to activate it?

@jrelvas-ipc
Copy link
Contributor Author

It's active by default

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.

4 participants