LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lite Tweaks - Suggestions welcomed
#59
(09-17-2014, 10:11 PM)rbdflyboy link Wrote: [quote author=misko_2083 link=topic=829.msg5078#msg5078 date=1410955468]
If google chrome isn't installed, the output will be:
Code:
du: cannot access ‘/home/linuxlite/.cache/google-chrome/’: No such file or directory"
so the script should check if $HOME/.cache/firefox, $HOME/.cache/google-chrome and $HOME/.cache/chromium folders exist.

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.
Reply


Messages In This Thread
Lite Tweaks - Suggestions welcomed - by Valtam - 09-04-2014, 08:51 PM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-04-2014, 10:17 PM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-06-2014, 11:17 PM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-16-2014, 01:05 AM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-16-2014, 07:40 AM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-16-2014, 10:45 AM
Re: Lite Cleaner - Suggestions welcomed - by bobw - 09-16-2014, 04:55 PM
Re: Lite Cleaner - Suggestions welcomed - by mpig - 09-17-2014, 07:16 AM
Re: Lite Cleaner - Suggestions welcomed - by bobw - 09-17-2014, 07:45 AM
Re: Lite Cleaner - Suggestions welcomed - by rbdflyboy - 09-17-2014, 10:41 PM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-18-2014, 08:20 AM
Re: Lite Cleaner - Suggestions welcomed - by eightbit - 09-29-2014, 05:11 AM
Re: Lite Cleaner - Suggestions welcomed - by bobw - 11-04-2014, 09:32 AM
Re: Lite Cleaner - Suggestions welcomed - by bobw - 11-04-2014, 01:47 PM
Re: Lite Tweaks - Suggestions welcomed - by N4RPS - 02-20-2015, 12:40 PM
Re: Lite Tweaks - Suggestions welcomed - by N4RPS - 02-22-2015, 11:48 PM
Re: Lite Tweaks - Suggestions welcomed - by Shady - 02-26-2015, 04:04 PM
Re: Lite Tweaks - Suggestions welcomed - by Hans - 03-02-2015, 11:27 AM
Re: Lite Tweaks - Suggestions welcomed - by Shady - 03-02-2015, 04:07 PM
Re: Lite Tweaks - Suggestions welcomed - by nomko - 06-02-2016, 07:09 AM
Re: Lite Tweaks - Suggestions welcomed - by MS - 10-09-2019, 04:36 AM
Re: Lite Tweaks - Suggestions welcomed - by MS - 10-09-2019, 02:26 PM
Re: Lite Tweaks - Suggestions welcomed - by MS - 10-12-2019, 02:53 AM
Re: Lite Tweaks - Suggestions welcomed - by MS - 10-12-2019, 10:46 AM

Forum Jump:


Users browsing this thread: 15 Guest(s)