mirror of
https://github.com/lutris/lutris
synced 2024-10-14 11:42:36 +00:00
Remove disable_monitoring option
This commit is contained in:
parent
5fc0d92ae4
commit
9ae36e6793
|
@ -1022,8 +1022,6 @@ Sysoptions
|
||||||
|
|
||||||
``disable_runtime`` (example: ``true``)
|
``disable_runtime`` (example: ``true``)
|
||||||
|
|
||||||
``disable_monitoring`` (example: ``true``)
|
|
||||||
|
|
||||||
``disable_compositor`` (example: ``true``)
|
``disable_compositor`` (example: ``true``)
|
||||||
|
|
||||||
``reset_pulse`` (example: ``true``)
|
``reset_pulse`` (example: ``true``)
|
||||||
|
|
|
@ -440,18 +440,6 @@ class Game(GObject.Object):
|
||||||
include_processes = shlex.split(system_config.get("include_processes", ""))
|
include_processes = shlex.split(system_config.get("include_processes", ""))
|
||||||
exclude_processes = shlex.split(system_config.get("exclude_processes", ""))
|
exclude_processes = shlex.split(system_config.get("exclude_processes", ""))
|
||||||
|
|
||||||
monitoring_disabled = system_config.get("disable_monitoring")
|
|
||||||
if monitoring_disabled:
|
|
||||||
dialogs.ErrorDialog(
|
|
||||||
"<b>The process monitor is disabled, Lutris "
|
|
||||||
"won't be able to keep track of the game status. "
|
|
||||||
"If this game requires the process monitor to be "
|
|
||||||
"disabled in order to run, please submit an "
|
|
||||||
"issue.</b>\n"
|
|
||||||
"To disable this message, re-enable the process monitor"
|
|
||||||
)
|
|
||||||
process_watch = not monitoring_disabled
|
|
||||||
|
|
||||||
if system_config.get("disable_compositor"):
|
if system_config.get("disable_compositor"):
|
||||||
self.set_desktop_compositing(False)
|
self.set_desktop_compositing(False)
|
||||||
|
|
||||||
|
@ -472,7 +460,7 @@ class Game(GObject.Object):
|
||||||
runner=self.runner,
|
runner=self.runner,
|
||||||
env=env,
|
env=env,
|
||||||
rootpid=gameplay_info.get("rootpid"),
|
rootpid=gameplay_info.get("rootpid"),
|
||||||
watch=process_watch,
|
watch=True,
|
||||||
term=terminal,
|
term=terminal,
|
||||||
log_buffer=self.log_buffer,
|
log_buffer=self.log_buffer,
|
||||||
include_processes=include_processes,
|
include_processes=include_processes,
|
||||||
|
|
|
@ -312,17 +312,6 @@ system_options = [ # pylint: disable=invalid-name
|
||||||
" over the provided ones."
|
" over the provided ones."
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"option": "disable_monitoring",
|
|
||||||
"label": "Disable process monitor",
|
|
||||||
"type": "bool",
|
|
||||||
"default": False,
|
|
||||||
"advanced": True,
|
|
||||||
"help": (
|
|
||||||
"Disables process monitoring of games, "
|
|
||||||
"Lutris won't detect when game quits."
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"option": "disable_compositor",
|
"option": "disable_compositor",
|
||||||
"label": "Disable desktop effects",
|
"label": "Disable desktop effects",
|
||||||
|
|
Loading…
Reference in a new issue