-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
On windows, cannot run game with administrator compatibility mode #1021
Comments
It doesn't work because by design commands in Sunshine do not run with administrator privileges to prevent escalation of privilege exploits. These commands are being loaded from a file, which does not even require administrator privileges to modify. If you need to launch an application with administrator privileges, follow this workaround: https://www.digitalcitizen.life/use-task-scheduler-launch-programs-without-uac-prompts/ |
Oh forgot to mention, if you create any script that simply opens the shortcut instead of directly executing it, that will work as well. Like creating a bat file and telling it to And then having Sunshine open the bat, will work without the scheduled task. Scheduled task is more for removing the UAC prompt entirely. |
Understood ! Thanks a lot for taking time to suggest workarounds, and for this amazing piece of software. |
I have a working proof of concept doing this, #1036 Just need review from someone who is more knowledgeable about the windows API and agree with me that it is a "safe" way of doing it. If it's not safe, then it might not be accepted basically. |
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the nightly release?
Describe the Bug
On windows 11, with sunshine installed as a service. Starting a binary without the administrator compatibility mode works fine, but gives an error while starting the exact same binary with the exact same configuration but with the administrator compatibility mode enabled (in the compatibility tab of the binary properties).
Expected Behavior
It should work.
Additional Context
Probably related to #764
Host Operating System
Windows
Operating System Version
11
Architecture
64 bit
Sunshine commit or version
0.18.4
Package
Windows - portable
GPU Type
Nvidia
GPU Model
Geforce RTX 3080
GPU Driver/Mesa Version
528.49
Capture Method (Linux Only)
No response
Config
Apps
Relevant log output
The text was updated successfully, but these errors were encountered: