Package Details: bleachbit-cli 3.0-2

Git Clone URL: https://aur.archlinux.org/bleachbit-cli.git (read-only)
Package Base: bleachbit-cli
Description: Deletes unneeded files to free disk space and maintain privacy. CLI version/no GUI.
Upstream URL: https://www.bleachbit.org/
Licenses: GPL3
Conflicts: bleachbit
Provides: bleachbit=3.0
Submitter: graysky
Maintainer: graysky
Last Packager: graysky
Votes: 16
Popularity: 0.014688
First Submitted: 2011-11-18 19:35
Last Updated: 2019-11-10 21:41

Required by (2)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3

graysky commented on 2012-05-07 20:34

@Meow - thanks for the suggestion. Will look into it.

Meow commented on 2012-05-06 16:49

I think this PKGBUILD script might need a little tweak intead of just copying the "GUI" version with simply excluding pygtk for dependency.
As the package name said is a cli version of bleachbit, but after you installed the package and run bleachbit from console without any arguments, it'll still try to import gtk module in order to get GUI in action, while if it happens you have no pygtk package installed, ImportError will be thrown.
I suggest you add some workarounds like 'sed' replacement in PKGBUILD to change the default behavior of bleachbit script.
Here is the snippet of original script:
#########################
if 1 == len(sys.argv): # 1-> 0
import gtk
import bleachbit.GUI
gui = bleachbit.GUI.GUI()
gtk.main()
else:
import bleachbit.CLI
bleachbit.CLI.process_cmd_line()
#########################
I suggest changing "1" in the first line to "0", then it will always execute the else block, even you run bleachbit without arguments(some usage info will showed).
And of course, don't forget to remove the "$pkgdir"/usr/share/applications" folder during makepkg session.

Meow commented on 2012-05-06 16:47

I think this PKGBUILD script might need a little tweak intead of just copying the "GUI" version with simply excluding pygtk for dependency.
As the package name said is a cli version of bleachbit, but after you installed the package and run bleachbit from console without any arguments, it'll still try to import gtk module in order to get GUI in action, while if it happens you have no pygtk package installed, ImportError will be threw.
I suggest you add some workarounds like 'sed' replacement in PKGBUILD to change the default behavior of bleachbit script.
Here is the snippet of original script:
#########################
if 1 == len(sys.argv): # 1-> 0
import gtk
import bleachbit.GUI
gui = bleachbit.GUI.GUI()
gtk.main()
else:
import bleachbit.CLI
bleachbit.CLI.process_cmd_line()
#########################
I suggest changing "1" in the first line to "0", then it will always execute the else block, even you run bleachbit without arguments(some usage info will showed).
And of course, don't forget to remove the "$pkgdir"/usr/share/applications" folder during makepkg session.

Anonymous comment on 2012-01-26 11:55

thanks.

graysky commented on 2011-11-18 19:37

For those of us not wanting to bring down the 177 megs of pygtk dependencies, this PKG provides the same functionality of bleachbit but with no GUI. I call it from an alias in my ~/.bashrc:

alias bb="sudo bleachbit --clean system.cache system.localizations system.trash system.tmp"