summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-24 08:46:21 -0400
committerGitHub <noreply@github.com>2020-04-24 08:46:21 -0400
commit37a8431d392cc264208bf4ba0ab5efb2515991fc (patch)
treeb811c7eab140c95db4ecca37ba17ff189d6239f4
parent370808fd66b6a9e45fe395514cc5b0b819fe71aa (diff)
parent93fd71e4032101d06e78890f22298c6b75190a59 (diff)
Merge pull request #215 from jlaw/patch-3
fix: Correct flag to specify user
-rw-r--r--larbs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/larbs.sh b/larbs.sh
index 6fcf1bd..0383a10 100644
--- a/larbs.sh
+++ b/larbs.sh
@@ -239,7 +239,7 @@ grep -q "laptop-updates.brave.com" /etc/hosts || echo "0.0.0.0 laptop-updates.br
[ "$edition" = "i3" ] && sed -i "s/^exec dwm/# exec dwm/;s/^#\s*exec i3/exec i3/;s/#\s*export STATUSBAR=\"\?i3blocks\"\?/export STATUSBAR=\"i3blocks\"/" "/home/$name/.xinitrc"
# Start/restart PulseAudio.
-killall pulseaudio; sudo -n "$name" pulseaudio --start
+killall pulseaudio; sudo -u "$name" pulseaudio --start
# This line, overwriting the `newperms` command above will allow the user to run
# serveral important commands, `shutdown`, `reboot`, updating, etc. without a password.