Compare commits
No commits in common. "068be0ab8079ef825f4938284266795956575b43" and "9816ddd5360334ec0345fed8eb13e968c94fd599" have entirely different histories.
068be0ab80
...
9816ddd536
3 changed files with 2 additions and 8 deletions
|
|
@ -1,12 +1,6 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
source ${$(realpath "$0"):h:h}/lib/next-in-path.zsh
|
source ${$(realpath "$0"):h:h}/lib/next-in-path.zsh
|
||||||
program="${0:a:t}"
|
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
|
envwrapconf=${XDG_CONFIG_HOME:-$HOME/.config}/envwrap/$program
|
||||||
[[ -e $envwrapconf ]] && source $envwrapconf
|
[[ -e $envwrapconf ]] && source $envwrapconf
|
||||||
$(next-in-path "$program" $0) "$@"
|
$(next-in-path "$program" $0) "$@"
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ profile_dir=${XDG_DATA_HOME:-$HOME/.local/share}/jails/webapp-$profile
|
||||||
|
|
||||||
mkdir -p $profile_dir
|
mkdir -p $profile_dir
|
||||||
|
|
||||||
exec firejail ${XAUTHORITY:+--whitelist=$XAUTHORITY} --private=$profile_dir chromium --restore-last-session=false --class=$profile "$@"
|
exec firejail --dbus-user=filter --private=$profile_dir chromium --restore-last-session=false --class=$profile "$@"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ if [[ -e $IDCACHE ]]; then
|
||||||
fi
|
fi
|
||||||
sudo xbps-install -S &>/dev/null
|
sudo xbps-install -S &>/dev/null
|
||||||
updates=$(xbps-install -un 2>&1)
|
updates=$(xbps-install -un 2>&1)
|
||||||
num_updates=$(echo -n $updates | wc -l)
|
num_updates=$(echo $updates | wc -l)
|
||||||
|
|
||||||
if [[ $list ]]; then
|
if [[ $list ]]; then
|
||||||
echo -n $updates
|
echo -n $updates
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue