Add helper-script for the default browser to fix isues with firefox and root user

This commit is contained in:
Daniel Ruiz de Alegría
2021-07-15 17:39:07 +02:00
parent bdd3ebc2c1
commit 26719ed2b2
5 changed files with 135 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
if [ $(id -u) -eq 0 ]; then
USER=$(find $XAUTHORITY -printf '%u')
exec runuser -u $USER -- sensible-browser "$@"
else
exec sensible-browser "$@"
fi