I have this error when running bleachbit through sudo or as root:

~$ sudo bleachbit
No protocol specified
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
Could not open X display

I have ubuntu 14.04, bleachbit 1.0.

Update: tested also bleachbit 1.8, same issue.

  • There is no need to run bleachbit as root ;) – Panther Sep 24 '15 at 19:49
  • @bodhi.zazen but it can't delete unneeded files not owned by user – BigOther Sep 24 '15 at 23:05
  • What files would that be ? – Panther Sep 24 '15 at 23:24
  • apt cache for example – BigOther Sep 24 '15 at 23:25
  • sudo apt-get clean IMO you really should not be using bleachbit on system files. – Panther Sep 24 '15 at 23:40

Maybe this could help, it seems others have had this issue as well: https://bugs.launchpad.net/bleachbit/+bug/1377719

  • As noted in the bug, BleachBit version 1.6 adds a warning for the option KDE - Temporary Files. The bug ticket also explains when this is an issue. – Andrew Sep 24 '15 at 16:12
  • Thanks for that, I skimmed the page, and it seemed that there was no clear answer, so I linked it hoping it could be helpful. Thanks @Andrew for clearing it up for me. I've had the error in the past, but figured out how to fix it, though I cannot remember exactly how. – Dooley_labs Sep 24 '15 at 16:15

In BleachBit through at least version 1.8 you need to avoid KDE - Temporary Files, or in the preferences maybe you can whitelist a file that looks like ~/.kde/tmp-(username)-desktop14/xauth-1000-_0 assuming its filename does not change.

(Thanks to @dooley_labs for referencing bug 1377719.)

  • The tool is crashing at the start as root, I can't get to the preferences. – BigOther Sep 25 '15 at 16:15
  • bigOTHER: The "tool" is BleachBit? Have you tried logging out or rebooting to reinitilize the KDE xauth file? – Andrew Sep 25 '15 at 19:45

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.