mirror of
https://github.com/lutris/lutris
synced 2024-11-02 07:10:17 +00:00
Display annoying message when process monitor is disabled
This commit is contained in:
parent
b4b5561361
commit
e5002482cd
1 changed files with 20 additions and 0 deletions
|
@ -316,6 +316,8 @@ class Game(object):
|
|||
exclude_processes = shlex.split(system_config.get('exclude_processes', ''))
|
||||
|
||||
monitoring_disabled = system_config.get('disable_monitoring')
|
||||
if monitoring_disabled:
|
||||
show_obnoxious_process_monitor_message()
|
||||
process_watch = not monitoring_disabled
|
||||
|
||||
self.game_thread = LutrisThread(launch_arguments,
|
||||
|
@ -439,3 +441,21 @@ class Game(object):
|
|||
logger.info("Steam game %s updating, setting game thread as not ready",
|
||||
appmanifest.steamid)
|
||||
self.game_thread.ready_state = False
|
||||
|
||||
|
||||
def show_obnoxious_process_monitor_message():
|
||||
"""Display an annoying message for people who disable the process monitor"""
|
||||
for _ in range(5):
|
||||
logger.critical("")
|
||||
logger.critical(" ****************************************************")
|
||||
logger.critical(" ****************************************************")
|
||||
logger.critical(" *** YOU HAVE THE PROCESS MONITOR DISABLED!!!!! ***")
|
||||
logger.critical(" ****************************************************")
|
||||
logger.critical(" ****************************************************")
|
||||
logger.critical("THIS OPTION WAS IMPLEMENTED AS A WORKAROUND FOR A BUG THAT HAS BEEN FIXED!!11!!1")
|
||||
logger.critical("RUNNING GAMES WITH THE PROCESS MONITOR DISABLED IS NOT SUPPORTED!!!")
|
||||
logger.critical("YOU ARE DISCOURAGED FROM REPORTING ISSUES WITH THE PROCESS MONITOR DISABLED!!!")
|
||||
logger.critical("THIS OPTION WILL BE REMOVED IN A FUTURE RELEASE!!!!!!!")
|
||||
logger.critical("IF YOU THINK THIS OPTION CAN BE USEFUL FOR ANY MEANS PLEASE LET US KNOW!!!!")
|
||||
for _ in range(5):
|
||||
logger.critical("")
|
||||
|
|
Loading…
Reference in a new issue