Merge pull request #5365 from R1kaB3rN/ulwgl

Update ULWGL paths
This commit is contained in:
Daniel Johnson 2024-03-19 16:58:03 -04:00 committed by GitHub
commit fdeeb4304b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,14 +24,14 @@ def get_ulwgl_path():
if system.can_find_executable("ulwgl-run"):
return system.find_executable("ulwgl-run")
path_candidates = (
os.path.expanduser("~/.local/share"),
"/app/share", # prioritize flatpak due to non-rolling release distros
"/usr/local/share",
"/usr/share",
"/opt",
settings.RUNTIME_DIR,
)
for path_candidate in path_candidates:
script_path = os.path.join(path_candidate, "ULWGL", "ulwgl_run.py")
script_path = os.path.join(path_candidate, "ulwgl", "ulwgl_run.py")
if system.path_exists(script_path):
return script_path