Home | News | Download | Packages | Forum | Wiki | Github

Bleachbit needs Root privilege to works


#1

I like to use Bleachbit in any Linux distribution, it’s a powerful tool.

But in Void-Linux I have a little problem to start it :

When I start it by the Xfce menu = Bleachbit starts without ‘Polkit’ or ‘Gksu’ authentication!

So I must go to a terminal and type ‘sudo bleachbit’ to use it whith Root privilege!

It’s strange because when I start (for example) Gparted = the ‘Polkit’ ask me for password to use Gparted with Root privilege.

I don’t understand why Bleachbit don’t call ‘Polkit’ or ‘Gksu’ to start in Root mode.


#2

You can create new menu item that launch bleachbit as root
copy pasted from different sources not tested:

cp /usr/share/applications/bleachbit.desktop ~/.local/share/applications/bleachbit-root.desktop

then modify new desktopfile:
Name=Bleachbit As Root
Exec=gksudo -k -u root bleachbit


#3

Ah OK !

But why create a new .desktop file ?
I only need to modify the original /usr/share/applications/bleachbit.desktop to do that…

Thanks! :monkey:


#4

If you edit the orginal it will get replaced when you update package


#5

ok :older_man:


#7

OK.

If I don’t want to use gksu / gksudo , I think it is possible to use authentication inside a terminal emulator, by modifying the new desktopfile like this:

Name=Bleachbit As Root
Exec=su -c bleachbit
Terminal=true

Now when I launch ‘Bleachbit As Root’ a terminal opens up and asks me for the root password :smiley_cat: