Solaris build?

Asked by Theatre-X

Hello, I would like to know where I could get started with making a Solaris build of Bleachbit? I use OpenIndiana on my laptop and really want to use Bleachbit on it. Thanks! :)

Question information

Language:
English Edit question
Status:
Answered
For:
BleachBit Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andrew Ziem (ahziem1) said :
#1

I don't know much about Solaris, but BleachBit works now on Windows, Linux, and at least one BSD. Every platform requires Python, GTK+, and PyGTK. Then you will need to add the paths for the cleaners: for example, Firefox on Linux is in ~/.mozilla/firefox (or something like that), and if this is different, you will need to add that path for Solaris. You don't have to mark it as Solaris, though, but a comment is helpful. Finally you need to search in the Python code for all the parts that look like the following

if sys.platform.startswith('linux'):
    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'

And you will need to add a condition for Solaris.

Revision history for this message
Theatre-X (theatrex) said :
#2

OpenIndiana has the GNU Coreutils on it too. I tried running it from src on my Solaris machine and I got a few errors as you can imagine :P

Revision history for this message
Theatre-X (theatrex) said :
#3

  I'm on it. :)

On 04/18/12 11:20 PM, Andrew Ziem wrote:
> Your question #194049 on BleachBit changed:
> https://answers.launchpad.net/bleachbit/+question/194049
>
> Status: Open => Answered
>
> Andrew Ziem proposed the following answer:
> I don't know much about Solaris, but BleachBit works now on Windows,
> Linux, and at least one BSD. Every platform requires Python, GTK+, and
> PyGTK. Then you will need to add the paths for the cleaners: for
> example, Firefox on Linux is in ~/.mozilla/firefox (or something like
> that), and if this is different, you will need to add that path for
> Solaris. You don't have to mark it as Solaris, though, but a comment is
> helpful. Finally you need to search in the Python code for all the
> parts that look like the following
>
> if sys.platform.startswith('linux'):
> 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'
>
> And you will need to add a condition for Solaris.
>

Revision history for this message
Theatre-X (theatrex) said :
#4

  By the way, I ran Bleachbit right from src just to see what would
happen and here's the log:

{

foobar@openindiana:~/Downloads/bleachbit-0.9.2$ python ./bleachbit.py
info: starting BleachBit version 0.9.2
warning: cannot find GPLv3 license text file
Traceback (most recent call last):
   File "./bleachbit.py", line 43, in <module>
     gui = bleachbit.GUI.GUI()
   File "/home/brandon/Downloads/bleachbit-0.9.2/bleachbit/GUI.py", line
779, in __init__
     CleanerML.load_cleaners()
   File
"/home/brandon/Downloads/bleachbit-0.9.2/bleachbit/CleanerML.py", line
198, in load_cleaners
     for pathname in list_cleanerml_files():
   File
"/home/brandon/Downloads/bleachbit-0.9.2/bleachbit/CleanerML.py", line
185, in list_cleanerml_files
     for pathname in listdir(cleanerdirs):
   File
"/home/brandon/Downloads/bleachbit-0.9.2/bleachbit/FileUtilities.py",
line 377, in listdir
     for pathname in listdir(dirname):
   File
"/home/brandon/Downloads/bleachbit-0.9.2/bleachbit/FileUtilities.py",
line 380, in listdir
     dirname = os.path.expanduser(directory)
   File "/usr/lib/python2.6/posixpath.py", line 248, in expanduser
     if not path.startswith('~'):
AttributeError: 'NoneType' object has no attribute 'startswith'

}

On 04/30/12 02:01 AM, Gogeden wrote:
> Your question #194049 on BleachBit changed:
> https://answers.launchpad.net/bleachbit/+question/194049
>
> Status: Answered => Open
>
> You are still having a problem:
> I'm on it. :)
>
> On 04/18/12 11:20 PM, Andrew Ziem wrote:
>> Your question #194049 on BleachBit changed:
>> https://answers.launchpad.net/bleachbit/+question/194049
>>
>> Status: Open => Answered
>>
>> Andrew Ziem proposed the following answer:
>> I don't know much about Solaris, but BleachBit works now on Windows,
>> Linux, and at least one BSD. Every platform requires Python, GTK+, and
>> PyGTK. Then you will need to add the paths for the cleaners: for
>> example, Firefox on Linux is in ~/.mozilla/firefox (or something like
>> that), and if this is different, you will need to add that path for
>> Solaris. You don't have to mark it as Solaris, though, but a comment is
>> helpful. Finally you need to search in the Python code for all the
>> parts that look like the following
>>
>> if sys.platform.startswith('linux'):
>> 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'
>>
>> And you will need to add a condition for Solaris.
>>

Revision history for this message
Andrew Ziem (ahziem1) said :
#5

It seems the cleanersdir is not defined. As described earlier, in Common.py you need to define paths for Solaris

Can you help with this problem?

Provide an answer of your own, or ask Theatre-X for more information if necessary.

To post a message you must log in.