Consolidate desktop controls with editable holidays and a running-window tray

This commit is contained in:
aria committed 2026-10-28 06:02:46 +09:00
1 parent 9908dde9f8
commit 326465952a
55 files changed
+4207 -450

No files matched your search

+7
View File
@@ -85,6 +85,12 @@ def environment():
"FERESE_ENABLE_TEST_POINTER": "1",
"FERESE_ENABLE_SCREENCOPY": "1", "PATH": f"{ROOT}/target/debug:" + os.environ.get("PATH", "/usr/bin"), "XDG_DATA_DIRS": f"{Path.home()}/.local/share:/usr/local/share:/usr/share"}
values.update({f"XDG_{kind.upper()}_HOME": str(DATA / "profile" / kind) for kind in ("config", "data", "cache", "state")})
# Keep Wayland, D-Bus and input methods private while allowing the nested
# shell to inspect the same audio server as the real desktop session.
host_runtime = Path(os.environ.get("XDG_RUNTIME_DIR", f"/run/user/{os.getuid()}"))
if (host_runtime / "pipewire-0").exists():
values["PIPEWIRE_RUNTIME_DIR"] = str(host_runtime)
values["TMPDIR"] = str(DATA / "tmp")
return values
@@ -124,6 +130,7 @@ def start():
return
DATA.mkdir(mode=0o700,parents=True,exist_ok=True)
DATA.chmod(0o700)
(DATA / "tmp").mkdir(mode=0o700, exist_ok=True)
if not (ROOT / "target/debug/ferese-rime").exists():
raise RuntimeError("Build ferese, feresectl and ferese-rime first")
for kind in ("config/ferese", "data", "cache", "state"):