Silence some gamemode messages

This commit is contained in:
Mathieu Comandon 2024-03-05 16:11:08 -08:00
parent 63a2f110df
commit b6fd9e27f7
2 changed files with 4 additions and 2 deletions

View file

@ -175,12 +175,14 @@ class MonitoredCommand:
self.on_stdout_output,
)
def log_filter(self, line):
def log_filter(self, line: str) -> bool:
"""Filter out some message we don't want to show to the user."""
if "GStreamer-WARNING **" in line:
return False
if "Bad file descriptor" in line:
return False
if "'libgamemodeauto.so.0' from LD_PRELOAD" in line:
return False
return True
def log_handler_stdout(self, line):

View file

@ -21,8 +21,8 @@ def get_ulwgl_path():
return system.find_executable("ulwgl-run")
path_candidates = (
os.path.expanduser("~/.local/share"),
"/usr/share",
"/usr/local/share",
"/usr/share",
"/opt",
settings.RUNTIME_DIR,
)