diff --git a/init/functions b/init/functions index 79ae184..599982a 100644 --- a/init/functions +++ b/init/functions @@ -38,7 +38,7 @@ possibly_run_save_script() { ENCODED_SCRIPT=$(qubesdb-read /qubes-save-script) if [ -z "$ENCODED_SCRIPT" ] ; then return ; fi tmpfile=$(mktemp /tmp/qubes-save-script.XXXXXXXXX) - echo $ENCODED_SCRIPT|perl -e 'use MIME::Base64 qw(decode_base64); local($/) = undef;print decode_base64()' >"$tmpfile" + echo $ENCODED_SCRIPT|base64 -d >"$tmpfile" chmod 755 "$tmpfile" DISPLAY=:0 su - user -c "$tmpfile" ret=$?