From 2e1cec5d5d11243ae7ec9e0b137fbd1e811075a4 Mon Sep 17 00:00:00 2001 From: Nippy Date: Thu, 17 Sep 2026 17:59:22 +0200 Subject: fix app/tools --- raveos-app-installer/raveos-app-installer.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'raveos-app-installer/raveos-app-installer.py') diff --git a/raveos-app-installer/raveos-app-installer.py b/raveos-app-installer/raveos-app-installer.py index 166268e..526e1ba 100644 --- a/raveos-app-installer/raveos-app-installer.py +++ b/raveos-app-installer/raveos-app-installer.py @@ -464,10 +464,12 @@ def plan_commands(apps: list, install: bool, gui: bool) -> list: if not src.is_dir(): continue dest = cdest.replace("{HOME}", _home) + cp_flag = "-rf" if a.get("config_overwrite") else "-rn" steps.append((f"config: {a['name']}", ["bash", "-c", f"mkdir -p {shlex.quote(dest)} && " - f"cp -rn {shlex.quote(str(src))}/. {shlex.quote(dest)}/"])) + f"cp {cp_flag} {shlex.quote(str(src))}/. {shlex.quote(dest)}/ && " + f"rm -f {shlex.quote(dest)}/Singleton*"])) # Config seedelés (több-utas változat): olyan appoknal, ahol tobb kulon # forras/cel par van (pl. PhotoGIMP: GIMP config + .desktop + ikonok @@ -487,10 +489,12 @@ def plan_commands(apps: list, install: bool, gui: bool) -> list: if not src.is_dir(): continue dest = mdest.replace("{HOME}", _home) + cp_flag = "-rf" if a.get("config_overwrite") else "-rn" steps.append((f"config: {a['name']} ({msrc})", ["bash", "-c", f"mkdir -p {shlex.quote(dest)} && " - f"cp -rn {shlex.quote(str(src))}/. {shlex.quote(dest)}/"])) + f"cp {cp_flag} {shlex.quote(str(src))}/. {shlex.quote(dest)}/ && " + f"rm -f {shlex.quote(dest)}/Singleton*"])) # Script env: a szkript tudja ki a tényleges user (sudo után root fut) _caller = os.environ.get("USER") or os.environ.get("LOGNAME") or "" -- cgit v1.3