-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
[Steam-Deck] Always maximize Heroic if Steam-Deck gamemode #1522
Conversation
One thing that needs further testing is if we really have access to |
After further testing, we can indeed not access that file on Flatpak. |
On another note, the code does work fine on AppImage. So it's really just that permission issue that's stopping this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 small issues. One is from my eyes necessary. The other is just a way i would write the code.
I would go with a window-size command line option, instead detecting if we are on steam deck. This works for everyone everywhere. |
That would be a good addition, but I'd say having a more automatic option like this is also good |
Do you need to access /etc from the flatpak? That's not possible. I believe the only way this might work is by checking the kernel version, might be that Steam OS had something specific in the name. I'm not sure though. |
Co-authored-by: Niklas <61798668+Nocccer@users.noreply.github.com>
Well, it's possible if we change the file access permissions. I just don't know which exact permission this is & where to change it |
Wdym? Which file? |
Yes, but if we give it access, we can see it at Not quite sure where this is set, but |
Hm, actually, it seems like there's just a |
|
So maybe add the permission specifically to this file with full path. |
You don't need a permission to access that file, as far as I can tell To check for yourself:
|
It looks like /run/host/os-release is not available on older Flatpak versions, so make sure Heroic doesn't crash if it is not available. |
We don't need to check if we are on steam deck. What we need todo is see if process.env.inGameMode or what it is called is true. If so we set the windows resolution to the monitor resolution. You can get monitor resolution via electron. I will write a example later. This will also start heroic in full screen for holoiso users or if someone hooked up a external monitor with a higher resolution Maybe this idea works also for bigpicturemode |
I adapt @CommandMC solution and just maximize heroic if we run heroic from steam. |
Had some ideas on how to clean this up |
Yes good changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I would still consider a option to disable/enable this behavior. Waht do you think ?
I tested the appiamge on steam deck. It's working. |
Well, can't approve since it's my PR as far as GitHub is concerned, but looks good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This checks the
XDG_CURRENT_DESKTOP=gamescope
environment variable to detect if Heroic is running in Steam-Deck gamemode and starts Heroic in fullscreen.Use the following Checklist if you have changed something on the Backend or Frontend: