09-17-2014, 11:17 PM
(09-17-2014, 10:41 PM)rbdflyboy link Wrote: [quote author=rbdflyboy link=topic=829.msg5098#msg5098 date=1410991904]
[quote author=misko_2083 link=topic=829.msg5078#msg5078 date=1410955468]
If google chrome isn't installed, the output will be:
so the script should check if $HOME/.cache/firefox, $HOME/.cache/google-chrome and $HOME/.cache/chromium folders exist.Code:du: cannot access ‘/home/linuxlite/.cache/google-chrome/’: No such file or directory"
Code:#! /bin/bash
#--------------------------------------------------------------------------------------------------------
# Name: Linux Lite Cleaner
# Description: A GUI tool to easily clean your Linux Lite system.
# Authors: Misko_2083, Jerry Bezencon
# Date: September 16th, 2014
# Website: https://www.freecinema2022.gq
#--------------------------------------------------------------------------------------------------------
APTCACHESIZE=$(du -sh /var/cache/apt/archives/ | awk '{print $1}')
TRASHCACHESIZE=$(du -sh $HOME/.local/share/Trash/ | awk '{print $1}')
THUMBCACHESIZE=$(du -sh $HOME/.thumbnails/ | awk '{print $1}')
if [ -d "$HOME/.cache/mozilla/" ]; then
FFCACHESIZE=$(du -sh $HOME/.cache/mozilla/ | awk '{print $1}')
else
FFCACHESIZE=$(echo 0)
fi
if [ -d "$HOME/.cache/google-chrome/" ]; then
GCCACHESIZE=$(du -sh $HOME/.cache/google-chrome/ | awk '{print $1}' )
else
GCCACHESIZE=$(echo nothing)
fi
if [ -d "$HOME/.cache/chromium/" ]; then
CHRCACHESIZE=$(du -sh $HOME/.cache/chromium/ | awk '{print $1}')
else
CHRCACHESIZE=$(echo nothing)
fi
# I've noticed that the dialog window icon doesn't match the menu icon, next line will fix this
ic="/usr/share/pixmaps/litecleaner.png"
# the other part is the same...
Think the fog is starting to lift somewhat...$Home/.cache/ doesn't exist in my OS. $ /home/rick/.cache/ does exist, only does not contain Firefox, Chromium, or Google-Chrome. These three are not housed in my /home/rick/.cache directory, they're housed somewhere else.
There is a separate /.mozilla directory which houses two files...extensions and firefox. Copied both files to /home/rick/.cache, then created a new folder named "mozilla" and inserted the two files into the "mozilla" folder. This solved the terminal error for mozilla.
The problem now is there are Chromium and Chrome errors that still exist and they are not listed anywhere in the /. directory. If someone would be so kind as to lead me where to find where them...one might be able to solve the other two errors as well. Thanks in advance
[/quote]
Just found chromium-browser in the etc directory and google in the opt directory....should be able to sort this out now.
[/quote]
Have cleared all the terminal errors and Lite Cleaner starts up much quicker from the terminal. Created a new Chromium folder in /.cache and inserted the contents of "chromium-browser" from the etc directory into it. Created google-chrome folder and inserted contents of "google" from opt directory into it. Had to create the new folder names to match otherwise the errors would not clear. Also, didn't move the folders from their respective directories just copied them to /.cache and dragged them into the new folders.