diff options
| author | Christopher Warner <cwarner@kernelcode.com> | 2026-10-13 15:12:51 -0400 |
|---|---|---|
| committer | Christopher Warner <cwarner@kernelcode.com> | 2026-10-13 15:12:51 -0400 |
| commit | cf68213d6664e60b834dae1be1be8dc0b978ff75 (patch) | |
| tree | 5f62fae14e6a5a1c61536b71014bcd0a69bfa5fb | |
| parent | 2c8f190bf1e1981813cb04b75b80d46fa79263f5 (diff) | |
| download | aerial-screensaver-linux-cf68213d6664e60b834dae1be1be8dc0b978ff75.tar.gz aerial-screensaver-linux-cf68213d6664e60b834dae1be1be8dc0b978ff75.tar.bz2 aerial-screensaver-linux-cf68213d6664e60b834dae1be1be8dc0b978ff75.tar.xz aerial-screensaver-linux-cf68213d6664e60b834dae1be1be8dc0b978ff75.zip | |
fix: resolve shared lib path through installed symlinks
readlink -f the helper scripts so encode/install-videos find lib/ under ~/.local/share after install.
Co-authored-by: Cursor <cursoragent@cursor.com>
| -rwxr-xr-x | bin/encode-aerial-lite | 3 | ||||
| -rwxr-xr-x | bin/fetch-aerial-recent | 2 | ||||
| -rwxr-xr-x | bin/install-aerial-videos | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/bin/encode-aerial-lite b/bin/encode-aerial-lite index 56621e0..d4b9c22 100755 --- a/bin/encode-aerial-lite +++ b/bin/encode-aerial-lite @@ -7,7 +7,8 @@ # SRC_DIR=/path/to/4k DST_DIR=~/Videos/Screensavers/Aerial encode-aerial-lite set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")" +ROOT="$(cd "$(dirname "$SCRIPT_PATH")/.." && pwd)" # shellcheck source=../lib/detect-vaapi.sh source "$ROOT/lib/detect-vaapi.sh" diff --git a/bin/fetch-aerial-recent b/bin/fetch-aerial-recent index 23f4a57..90a5a95 100755 --- a/bin/fetch-aerial-recent +++ b/bin/fetch-aerial-recent @@ -100,7 +100,7 @@ echo echo "Masters ready: $(du -sh "$MASTER_DIR" | cut -f1)" if [[ "$ENCODE" -eq 1 ]]; then - SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)" ENCODER="$SCRIPT_DIR/encode-aerial-lite" if [[ ! -x "$ENCODER" ]]; then ENCODER="$(command -v encode-aerial-lite || true)" diff --git a/bin/install-aerial-videos b/bin/install-aerial-videos index 5e6b313..33cecf6 100755 --- a/bin/install-aerial-videos +++ b/bin/install-aerial-videos @@ -7,7 +7,8 @@ # install-aerial-videos --from-dir DIR # copy already-lite .mp4 files set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")" +ROOT="$(cd "$(dirname "$SCRIPT_PATH")/.." && pwd)" VIDEO_DIR="${VIDEO_DIR:-$HOME/Videos/Screensavers/Aerial}" MODE="fetch" FROM="" |
