From dbee9d8b9329725f31187c1c2eee475aa058a8cb Mon Sep 17 00:00:00 2001 From: xah30 Date: Fri, 29 May 2026 19:39:04 +0300 Subject: [PATCH] fix(aura-gui): rename product to 'Aura' + uppercase SETENV in sudoers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two bugs visible after user's first Install-admin-access click: 1) `visudo -c` rejected the fragment because sudoers tags must be UPPERCASE. We wrote `setenv:` (lowercase) which sudoers does not recognise as a tag and treats as a command path, producing a syntax error at column 29 of /etc/sudoers.d/aura-gui:2 — and worse, the broken file stayed on disk so every subsequent `sudo` complained about the syntax error too (sudo still functions but the warning is noise). Fix: drop the `setenv:` tag entirely. We never needed it — the GUI only passes RUST_LOG to the child via env(), which `sudo -E` would forward but we deliberately chose not to (smaller surface). Removing the tag also removes the failure mode. 2) Product rename per user feedback ("переименуй пакет на просто Aura"): - tauri.conf.json `productName` and window title: `aura-gui` -> `Aura` - bundle now produces /Applications/Aura.app and Aura_0.1.0_aarch64.dmg - identifier `ru.undergr0und.aura` was already correct, no change - sudoers file is now /etc/sudoers.d/aura (was aura-gui), so the success message and revert hint are updated accordingly The internal MacOS/ binary is still named `aura-gui` (Tauri uses the Cargo crate name there) — not user-visible, only the dev internals see it. Manual cleanup also performed on the dev host: - /Applications/aura-gui.app removed - /etc/sudoers.d/aura-gui (the broken fragment from the first failed install attempt) removed via `osascript ... with administrator privileges` so sudo is no longer logging syntax errors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 --- aura-gui/src-tauri/src/lib.rs | 25 ++++++++++++++----------- aura-gui/src-tauri/tauri.conf.json | 4 ++-- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/aura-gui/src-tauri/src/lib.rs b/aura-gui/src-tauri/src/lib.rs index 738fa3e..fea2509 100644 --- a/aura-gui/src-tauri/src/lib.rs +++ b/aura-gui/src-tauri/src/lib.rs @@ -268,22 +268,25 @@ fn install_sudoers_admin(state: tauri::State<'_, Arc>) -> Result /etc/sudoers.d/aura-gui <<'AURA_GUI_EOF'\n{escaped}AURA_GUI_EOF\n\ - chown root:wheel /etc/sudoers.d/aura-gui && \ - chmod 0440 /etc/sudoers.d/aura-gui && \ - visudo -c -f /etc/sudoers.d/aura-gui" + cat > /etc/sudoers.d/aura <<'AURA_EOF'\n{escaped}AURA_EOF\n\ + chown root:wheel /etc/sudoers.d/aura && \ + chmod 0440 /etc/sudoers.d/aura && \ + visudo -c -f /etc/sudoers.d/aura" ); let osa = format!( "do shell script \"{}\" with administrator privileges", @@ -306,8 +309,8 @@ fn install_sudoers_admin(state: tauri::State<'_, Arc>) -> Result