You are not logged in.

#1 2017-06-19 05:36:16

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Script to Clean Out Min Browser Configuration Folders

I created a small script that cleans out the Min browser configuration folders.  The toughest part of the script for me was deleting all but two files in the Local Storage folder.  If you delete the two files whose names begin with file__0, then the next time you start the browser, you are directed to the main site for the Min browser.

Enough of the babble, here's the script:

#!/bin/bash
clear
echo "Clearing Min configuration folders."
rm -r $HOME/.config/Min/Cache/*
shopt -s extglob
rm -r $HOME/.config/Min/Local\ Storage/!(file__0.*)
shopt -u extglob
rm $HOME/.config/Min/Cookies
echo "Finished clearing Min configuration folders."

Source consulted to selectively delete files in the Local Storage folder:  Linux: Bash Delete All Files in a Directory Except Few

Offline

#2 2017-06-19 06:32:29

dhalgren
Member
Registered: 2015-10-01
Posts: 152

Re: Script to Clean Out Min Browser Configuration Folders

Cool. Used it, and thanks again.

Offline

#3 2017-06-21 00:10:12

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: Script to Clean Out Min Browser Configuration Folders

^ You're welcome.  Thank you for expressing your gratitude.  It's not perfect.  It produces errors if there are no files in the folders looked at and if a Cookies file doesn't exist.  It scratches my itch, so I'm satisfied with it.   smile

Offline

Board footer

Powered by FluxBB