diff --git a/bleachbit.spec b/bleachbit.spec index b3da8c9..6ac5a93 100644 --- a/bleachbit.spec +++ b/bleachbit.spec @@ -43,6 +43,24 @@ to make them run faster. %prep %setup -q +# Upstream also creates this extra .desktop file, for running BleachBit as root, by copying the basic version instead of tracking a separate file in git. +cp -p ./org.bleachbit.BleachBit.desktop ./org.bleachbit.BleachBit-root.desktop +sed --regexp-extended 's/^Name=BleachBit$/Name=BleachBit as Administrator/g' --in-place ./org.bleachbit.BleachBit-root.desktop +sed --regexp-extended 's/^(.*Exec)=bleachbit$/\1=bleachbit-root/g' --in-place ./org.bleachbit.BleachBit-root.desktop + +cat > ./bleachbit.pam < ./bleachbit.console <