From b93944793dcd1eac024d75cb952a5f9c5c5311b9 Mon Sep 17 00:00:00 2001 From: DualFroz Date: Wed, 5 Aug 2026 20:37:41 +0200 Subject: [PATCH] fix: set PYTHONPATH in the generated clip-vault wrappers The clip-vault and clip-vault-daemon wrappers ran python3 -m without a PYTHONPATH, so they failed with ModuleNotFoundError from any shell that did not export it by hand. Both now set it the same way the notif-vault wrappers do, which also lets the autostart entry call the daemon directly instead of wrapping it in env. --- README.md | 9 ++------- clip-vault/install.sh | 9 ++++----- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 7ffd458..bdb6355 100644 --- a/README.md +++ b/README.md @@ -65,16 +65,11 @@ cd clip-vault ``` This copies the package into `~/.local/share/clip-vault`, drops `clip-vault` -and `clip-vault-daemon` wrappers into `~/.local/bin`, and adds an autostart +and `clip-vault-daemon` wrappers into `~/.local/bin` (both wrappers set +`PYTHONPATH` themselves, so they work from any shell), and adds an autostart entry so the daemon starts with your session. -One rough edge worth knowing: the two wrapper scripts do **not** set -`PYTHONPATH` themselves, so running them by hand from a fresh shell needs it -exported first. The autostart entry sets it for you, so this only affects -manual runs. - ```bash -export PYTHONPATH="$HOME/.local/share/clip-vault:$PYTHONPATH" clip-vault-daemon & ``` diff --git a/clip-vault/install.sh b/clip-vault/install.sh index 01629db..019419b 100755 --- a/clip-vault/install.sh +++ b/clip-vault/install.sh @@ -12,13 +12,13 @@ cp "$sourceDir/config.default.json" "$installDir/config.default.json" cat > "$binDir/clip-vault" < "$binDir/clip-vault-daemon" < "$autostartDir/clip-vault.desktop" <