WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: bleachbit.tcz is wrong working with the prefix /usr/local  (Read 2619 times)

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
bleachbit.tcz is wrong working with the prefix /usr/local
« on: February 24, 2012, 12:14:26 AM »
in the python code, namely in the files
/usr/local/share/bleachbit/Common.py
and
/usr/local/share/bleachbit/Unix.py
references prescribed as /usr/share/* and /usr/lib/*

therefore bleachbit not finds its localizations which placed in /usr/local/share/locale
about it without having understood i started topic http://forum.tinycorelinux.net/index.php/topic,12630.0.html
also bleachbit not finds its cleaners which placed in /usr/local/share/bleachbit/cleaners
may be therefore bleachbit can't use something else of its functions

to fix it necessary to replace all entries /usr/share/ to /usr/local/share/ in the above two files
except for the reference /usr/share/i18n/ in the /usr/local/share/bleachbit/Unix.py

maybe it makes sense replace /usr/lib/openoffice/ to /usr/local/lib/openoffice3/ for openoffice3.tcz
or add the appropriate lines to /usr/local/share/bleachbit/Unix.py
so as well as /usr/local/lib/libreoffice/share/ and /usr/local/lib/libreoffice/basis3.3/share/ for libreoffice.tcz
but it seems doubtful due to the method of package mounting in tcl and will not work in general or will work until the first reboot

in addition to the above
i already had installed opera11.tcz but bleachbit did not define this
i just copied /usr/local/share/bleachbit/cleaners/opera.xml to opera11.xml
then replaced all entries /.opera/ to /.opera-11/ in /usr/local/share/bleachbit/cleaners/opera11.xml
also replaced the following
<cleaner id="opera"> to <cleaner id="opera11">
<label>Opera</label> to <label>Opera-11</label>
<running type="exe">opera</running> to <running type="exe">opera-11</running>
voila, bleachbit became understand our unconventional opera-11 :)

modified files are attached for compare
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: bleachbit.tcz is wrong working with the prefix /usr/local
« Reply #1 on: February 29, 2012, 02:08:04 AM »
bleachbit did not follow $DESTDIR when installation was done.  Some manual changes needed to be done when the extension was created.  There is a much newer version of this package available that might already have these fixed.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: bleachbit.tcz is wrong working with the prefix /usr/local
« Reply #2 on: March 01, 2012, 06:54:35 AM »
in the newer version 0.9.1 this is not fixed
need to make the same manual changes
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline redwolf

  • Newbie
  • *
  • Posts: 20
Re: bleachbit.tcz is wrong working with the prefix /usr/local
« Reply #3 on: March 18, 2012, 12:11:17 PM »
I discovered this issue after realizing that my list of cleaners was short. Adding a symlink pointing to /usr/local/share/bleachbit in the /usr/share folder seems to have resolved that problem temporarily.