From 36a99e6ec8f5e900840999680b049bd7fc9ea48c Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Tue, 5 Jul 2016 14:06:37 -0400 Subject: [PATCH] run lbry as non-root user --- packaging/ubuntu/postinst_append | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/ubuntu/postinst_append b/packaging/ubuntu/postinst_append index 2e040b492..2b3200504 100755 --- a/packaging/ubuntu/postinst_append +++ b/packaging/ubuntu/postinst_append @@ -16,7 +16,11 @@ case $? in esac if [ $RUN = 1 ]; then - xdg-open "lbry://lbry" + if [ -n $SUDO_USER ]; then + sudo --user="$SUDO_USER" xdg-open "lbry://lbry" + else + xdg-open "lbry://lbry" + fi else zenity --info --text="LBRY Installed\n\nNo problem. You can run LBRY later by going to