blob: d241210d81c3020c6cf6859bf8874024b89ea9cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
declare -a args
# Fix whatpulse bypassing wrapper script on startup
AUTOSTART="${XDG_CONFIG_HOME:-$HOME/.config}/autostart/whatpulse.desktop"
if [[ -w "${AUTOSTART}" ]]; then
sed -i 's;lib/whatpulse;bin;' "${AUTOSTART}"
chmod 400 "${AUTOSTART}"
fi
until (($# == 0)); do
if [[ $1 =~ ^-[^-] ]]; then
args+=("-$1")
else
args+=("$1")
fi
shift
done
exec -a "$0" /usr/lib/whatpulse/whatpulse "${args[@]}"
|