VectorLinux
October 30, 2014, 03:30:27 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Bleachbit application and menu related  (Read 3522 times)
Alb
Member
*
Posts: 74


« on: December 16, 2010, 07:33:40 am »

Hello,
I'm running VL 6.0 Light with satisfaction. Some days ago I installed bleachbit-0.8.2-3.1.el5.noarch.tgz (an application for getting rid of useless files) and noticed that, not even running update-icewm-menu-sh the bleachbit entry appeared in the IceWM menus. Then I went up to /usr/share/applications and noticed that there were two bleachbit.desktop files: bleachbit.desktop and bleachbit-root.desktop, so, in .icewm I edited the menu-utilties adding the two missing voices:

prog "Bleachbit" "/usr/share/pixmaps/bleachbit.png" bleachbit
prog "Bleachbit-root" "/usr/share/pixmaps/bleachbit.png" bleachbit-root


But the result is partially good as now only the bleachbit entry appears in that menu while it was impossible to me making IceWM add bleachbit-root entry, too (or have I to assume that bleachbit-root has to be launched by means of terminal only?).
Any suggestion?

Here is the output of gtkfind for bleachbit:
home/alberto/.config/bleachbit
/home/alberto/.config/bleachbit/bleachbit.ini
/home/alberto/Desktop/bleachbit-0.8.2-3.1.el5.noarch.tgz
/home/alberto/bleachbit_menus
/etc/pam.d/bleachbit-root
/etc/security/console.apps/bleachbit-root
/usr/bin/bleachbit
/usr/bin/bleachbit-root
/usr/sbin/bleachbit-root
/usr/share/applications/bleachbit-root.desktop
/usr/share/applications/bleachbit.desktop
/usr/share/pixmaps/bleachbit.png
/usr/share/doc/bleachbit-0.8.2
/usr/share/bleachbit
/var/log/packages/bleachbit-0.8.2-3.1.el5.noarch

Besides here are the two .desktop files:

bleachbit.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=BleachBit
Comment=Free space and maintain privacy
Comment[it]=Libera spazio e mantiene la privacy
GenericName=Unnecessary file cleaner
Icon=/usr/share/pixmaps/bleachbit.png
Terminal=false
TryExec=bleachbit
Exec=bleachbit
Categories=GTK;System;
Encoding=UTF-8
StartupNotify=true

bleachbit-root.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=BleachBit as Administrator
Comment=Free space and maintain privacy
Comment[it]=Libera spazio e mantiene la privacy
GenericName=Unnecessary file cleaner
GenericName[it]=Ripulisce file non necessari
Terminal=false
TryExec=bleachbit-root
Exec=bleachbit-root
Icon=/usr/share/pixmaps/bleachbit
Categories=GTK;System;
Encoding=UTF-8
StartupNotify=true

X-Desktop-File-Install-Version=0.10

Have nice Season's Holidays.
Best Regards,
Alberto



Logged
nightflier
Administrator
Vectorian
*****
Posts: 4026



« Reply #1 on: December 16, 2010, 07:48:53 am »

My guess: The file bleachbit-root is in /sbin, which is outside the normal user's search path. Since IceWM can not find the file, it does not display the entry. Try entering the full path to the executable.
Logged
Alb
Member
*
Posts: 74


« Reply #2 on: December 16, 2010, 11:35:30 am »

I added the full path to both .icewm/menu-utilities and /usr/share/applications/bleachbit-root.desktop:

prog "Bleachbit-root" "/usr/share/pixmaps/bleachbit.png" /sbin/bleachbit-root

[Desktop Entry]
Version=1.0
Type=Application
Name=BleachBit as Administrator
Comment=Free space and maintain privacy
Comment[it]=Libera spazio e mantiene la privacy
GenericName=Unnecessary file cleaner
GenericName[it]=Ripulisce file non necessari
Terminal=false
TryExec=/sbin/bleachbit-root
Exec=/sbin/bleachbit-root
Icon=/usr/share/pixmaps/bleachbit
Categories=GTK;System;
Encoding=UTF-8
StartupNotify=true

X-Desktop-File-Install-Version=0.10

Afterwards I launched update-icewm-menu.sh and it noticed and showed the new program bleachbit-root, but the entry was not added all the same (!?)
Logged
Alb
Member
*
Posts: 74


« Reply #3 on: December 16, 2010, 11:54:45 am »

I have to add this:
If I try to launch bleachbit-root from command line I don't have to type /sbin/bleachbit-root as it does not work, but only bleachbit-root, and it works.
So I edited bleachbit-root.desktop and took away the full path (I, just left it in .icewm/menu-utilities)
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4026



« Reply #4 on: December 17, 2010, 04:57:17 pm »

I think I misread.. your list shows "/usr/sbin/bleachbit-root".. and there is also one named "/usr/bin/bleachbit-root"?
« Last Edit: December 17, 2010, 04:59:09 pm by nightflier » Logged
Alb
Member
*
Posts: 74


« Reply #5 on: December 18, 2010, 06:07:51 am »

Hello,
I'm a little confused.

Here are all the occurrencies of the search for bleachbit-root.

/etc/pam.d/bleachbit-root
/etc/security/console.apps/bleachbit-root
/usr/bin/bleachbit-root
/usr/sbin/bleachbit-root
/usr/share/applications/bleachbit-root.desktop

Logged
nightflier
Administrator
Vectorian
*****
Posts: 4026



« Reply #6 on: December 18, 2010, 06:47:46 am »

Do you have a link for where you obtained the package? I'd like to install it on a machine for trouble shooting.
Logged
Alb
Member
*
Posts: 74


« Reply #7 on: December 18, 2010, 01:47:23 pm »

It is a rpm package that I transformed into a tgz one by means of rpm2tgz.
I don't remember the site link exactly, but could be this: http://rpm.pbone.net/index.php3/stat/4/idpl/14851830/dir/redhat_el_5/com/bleachbit-0.8.2-3.1.el5.noarch.rpm.html
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4026



« Reply #8 on: December 19, 2010, 03:49:14 pm »

I'm getting the same result as you did. Those "bleachbit-root" files are actually symbolic links, not sure exactly how that works, but it seems to affect how menu items are handled. Converting rpm packages sometimes give unexpected results.

The last version that I see for Slack 12.2 (vl6 compatible) is 0.5, pretty far behind the 0.8.x version. I'm will try to build a package using the current source and see how that works.
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4026



« Reply #9 on: December 21, 2010, 07:42:38 am »

I built a couple of different packages using the current source and build scripts from Slackware. Neither of them produced the bleachbit-root files that were found in the rpm converted package.

If you want to try either of them, the first one is based on the SW 12.2 script:
http://cincinnatix.com/vectorlinux/nightflier/bleachbit-0.8.4-noarch-1vl60.tlz
Second one is made using a SW 13.1 script:
http://cincinnatix.com/vectorlinux/nightflier/bleachbit-0.8.4-i686-2vl60.tlz

Note: These are unofficial packages. Use at own risk.
Logged
Alb
Member
*
Posts: 74


« Reply #10 on: December 23, 2010, 10:31:19 am »

I installed the first one: http://cincinnatix.com/vectorlinux/nightflier/bleachbit-0.8.4-noarch-1vl60.tlz and everything is all right.
Thanks a lot.

P.S.
I noticed that you can use bleachbit even for deleting files for unwanted languages (localizations). Do you know if there is another way to do it, too?
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4026



« Reply #11 on: December 23, 2010, 10:44:34 pm »

Glad it works for you. Smiley

Never looked into adding or deleting languages, don't know about that one.
Logged
pierce.jason
Packager
Vectorite
****
Posts: 250



« Reply #12 on: January 13, 2011, 11:26:29 pm »

I noticed that you can use bleachbit even for deleting files for unwanted languages (localizations). Do you know if there is another way to do it, too?

Some distro have a package called "localepurge". I haven't checked if VL does. Basically you select all locale in a config file, that you want to keep. Then as soon as you install a new package, the non-wanted locale(languages) are deleted.

pierce.jason
Logged

pierce.jason
Email: $(echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!