[data] add env to polkit launcher

This commit is contained in:
Philip Mueller 2023-12-04 06:37:57 +07:00
parent 1bd53bb8c3
commit 2368c3dba2

View File

@ -1,6 +1,11 @@
#!/bin/bash #!/bin/bash
if [ $(which pkexec) ]; then if [ $(which pkexec) ]; then
pkexec --disable-internal-agent "/usr/bin/calamares" "$@" pkexec --disable-internal-agent \
env DISPLAY="$DISPLAY" \
XAUTHORITY="$XAUTHORITY" \
DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" \
HOME="$HOME" \
"/usr/bin/calamares" "-D6" "$@"
else else
/usr/bin/calamares "$@" /usr/bin/calamares "-D6" "$@"
fi fi