Implement supervisor features using new config variables

This allows direct control over who can make requests on behalf of other processes

	require_supervisor can also be used to allow a supervisor to take direct control of gamemode on the system (perhaps a GUI, or game launcher)
This commit is contained in:
Marc Di Luzio
2019-02-09 15:49:46 +00:00
parent d60ac23daa
commit 1430c0b831
4 changed files with 130 additions and 8 deletions

View File

@ -61,6 +61,16 @@ inhibit_screensaver=1
;amd_core_clock_percentage=0
;amd_mem_clock_percentage=0
[supervisor]
; This section controls the new gamemode functions gamemode_request_start_for and gamemode_request_end_for
; The whilelist and blacklist control which supervisor programs are allowed to make the above requests
;supervisor_whitelist=
;supervisor_blacklist=
; In case you want to allow a supervisor to take full control of gamemode, this option can be set
; This will only allow gamemode clients to be registered by using the above functions by a supervisor client
;require_supervisor=0
[custom]
; Custom scripts (executed using the shell) when gamemode starts and ends
;start=notify-send "GameMode started"