Mailinglist Archive: opensuse-bugs (4067 mails)

< Previous Next >
[Bug 712471] bleachbit doesn't run

Jan Matejek <jmatejek@xxxxxxxxxx> changed:

What |Removed |Added
CC| |jmatejek@xxxxxxxxxx

--- Comment #13 from Jan Matejek <jmatejek@xxxxxxxxxx> 2011-08-23 13:09:55 UTC
nope, this is not python's fault at all

(In reply to comment #0)
Bleachbit doesn't start from menu.
if not path.startswith('~'):
AttributeError: 'NoneType' object has no attribute 'startswith'

which means that 'path' is None
which means that 'dirname = os.path.expanduser(directory)' is passing None for

which means that one of the items in CleanerML is None ... and we see that
there are three such items, comming from, one of which:

system_cleaners_dir = None
if sys.platform == 'linux2':
system_cleaners_dir = '/usr/share/bleachbit/cleaners'
elif sys.platform == 'win32':
system_cleaners_dir = os.path.join(bleachbit_exe_path, 'share\\cleaners\\')
elif sys.platform[:6] == 'netbsd':
system_cleaners_dir = '/usr/pkg/share/bleachbit/cleaners'

here's your bug: 'sys.platform' is no longer "linux2", it's "linux3" because of
the kernel. Testing for operating system this way is wrong (even though nobody
realized that before linux3 happened).
upstream is still discussing what is the correct way to do this, for now the
consensus is that "sys.platform.startswith('linux')" is good enough until we
have something better

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >