From 7370e1898f5db116082dec7bd5afa6b3e3019db6 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Sun, 11 Jan 2026 14:05:25 +0100 Subject: [PATCH 1/2] envwrap: create new wrapper if called directly --- misc/envwrap | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc/envwrap b/misc/envwrap index e840c5e..e95cbb4 100755 --- a/misc/envwrap +++ b/misc/envwrap @@ -1,6 +1,12 @@ #!/bin/zsh source ${$(realpath "$0"):h:h}/lib/next-in-path.zsh program="${0:a:t}" +if [[ $program == "envwrap" ]]; then + echo "Creating wrapper for $1 at ${0:a:h}/$1" >&2 + ln -sr $(realpath "$0") ${0:a:h}/$1 + exit 0 +fi + envwrapconf=${XDG_CONFIG_HOME:-$HOME/.config}/envwrap/$program [[ -e $envwrapconf ]] && source $envwrapconf $(next-in-path "$program" $0) "$@" From 068be0ab8079ef825f4938284266795956575b43 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Sun, 11 Jan 2026 14:06:13 +0100 Subject: [PATCH 2/2] small changes --- misc/webapp | 2 +- void/xcheckupdates | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/webapp b/misc/webapp index ba85ca5..684aeaf 100755 --- a/misc/webapp +++ b/misc/webapp @@ -11,4 +11,4 @@ profile_dir=${XDG_DATA_HOME:-$HOME/.local/share}/jails/webapp-$profile mkdir -p $profile_dir -exec firejail --dbus-user=filter --private=$profile_dir chromium --restore-last-session=false --class=$profile "$@" +exec firejail ${XAUTHORITY:+--whitelist=$XAUTHORITY} --private=$profile_dir chromium --restore-last-session=false --class=$profile "$@" diff --git a/void/xcheckupdates b/void/xcheckupdates index e48a5c7..30451a9 100755 --- a/void/xcheckupdates +++ b/void/xcheckupdates @@ -9,7 +9,7 @@ if [[ -e $IDCACHE ]]; then fi sudo xbps-install -S &>/dev/null updates=$(xbps-install -un 2>&1) -num_updates=$(echo $updates | wc -l) +num_updates=$(echo -n $updates | wc -l) if [[ $list ]]; then echo -n $updates