Cursor: also install as Xcursor default theme so Steam/Proton pick it up
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
This commit is contained in:
@@ -168,6 +168,13 @@ def main():
|
||||
sys.exit(f"no artwork for cursor shape '{n}'")
|
||||
with open(os.path.join(DEST, "index.theme"), "w") as f:
|
||||
f.write(f"[Icon Theme]\nName={NAME}\nComment={DESC}\nInherits={os.path.basename(BASE)}\n")
|
||||
# Xcursor's fallback theme is "default": apps that never see XCURSOR_THEME (Steam, Proton
|
||||
# containers, anything started before the env was set) land here and get ours too.
|
||||
fallback = os.path.join(os.path.dirname(DEST), "default", "index.theme")
|
||||
if not os.path.exists(fallback) or NAME in open(fallback).read():
|
||||
os.makedirs(os.path.dirname(fallback), exist_ok=True)
|
||||
with open(fallback, "w") as f:
|
||||
f.write(f"[Icon Theme]\nName=Default\nComment=Points at {NAME}\nInherits={NAME}\n")
|
||||
finally:
|
||||
shutil.rmtree(tmp, ignore_errors=True)
|
||||
print(f"installed {NAME} -> {DEST}")
|
||||
|
||||
Reference in New Issue
Block a user