From cc74d6d1b8dd4f27bc4c3815ca98dccbc9864649 Mon Sep 17 00:00:00 2001 From: Andrew Toskin Date: Jul 15 2020 03:22:56 +0000 Subject: Remove "BleachBit As Administrator": broken by default on Fedora Upstream offers a .desktop entry (based on the inline catted PolicyKit files here in the spec) for launching BleachBit with administrator privileges. However, their current implementation requests the password not for the invoking user with sudo access, but for the literal root account -- which by default on Fedora is never actually set. Even if the user manually sets a root password, the bleachbit-root executable only works from the command line; the .desktop file silently launches and then exits again without prompting for a password at all. Unless or until the upstream developers figure out another solution (discussed at ), I think Fedora users are better off just opening a terminal and doing `sudo bleachbit` instead. --- diff --git a/bleachbit.spec b/bleachbit.spec index f7be8b9..c4ca9cb 100644 --- a/bleachbit.spec +++ b/bleachbit.spec @@ -20,7 +20,6 @@ BuildRequires: python3-rpm-macros Requires: python(abi) >= 3.0 Requires: gtk3 -Requires: usermode Requires: python3-chardet Requires: python3-gobject @@ -43,23 +42,6 @@ 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 <