GithubHelp home page GithubHelp logo

graysky2 / profile-cleaner Goto Github PK

View Code? Open in Web Editor NEW
196.0 196.0 16.0 111 KB

Simple script to vacuum and reindex sqlite databases used by Firefox and by Chrome/Chromium.

Home Page: https://bbs.archlinux.org/viewtopic.php?id=148062

License: MIT License

Makefile 7.11% Shell 92.89%

profile-cleaner's People

Contributors

aesiris avatar derjoachim avatar fwilhe avatar graysky2 avatar kiwnix avatar laurentb avatar matejlach avatar qm3ster avatar sekret1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

profile-cleaner's Issues

Unable to handle directories that contains a space

Hi,

My profile directory contains a space. When running profile-cleaner, I get the following output:

% profile-cleaner f
profile-cleaner v1.90

Cleaning profile for firefox
find: 9zbsqnek.Default': No such file or directory find:User': No such file or directory
Cleaning permissions.sqlite done -0 Mbytes
Cleaning downloads.sqlite done -0 Mbytes
Cleaning formhistory.sqlite done -0 Mbytes
^C
Profile(s) for firefox reduced by 0 Mbytes.

Notice when I use with profile-cleaner

This is what I get:

yakir@localhost ~ $ profile-cleaner f
profile-cleaner v2.30

 Cleaning profile for firefox
 Cleaning webappsstore.sqlite                  done  -.03 Mbytes
 Cleaning stylish.sqlite                       done  -0 Mbytes
 Cleaning signons.sqlite                       done  -0 Mbytes
 Cleaning readItLater.sqlite                   done  -0 Mbytes
 Cleaning places.sqlite-wal                    done  -0 Mbytes
 Cleaning places.sqlite                        done  -22.31 Mbytes
 Cleaning permissions.sqlite                   done  -0 Mbytes
 Cleaning netpredictions.sqlite                done  -0 Mbytes
 Cleaning healthreport.sqlite                  done  -0 Mbytes
 Cleaning formhistory.sqlite                   done  -0 Mbytes
 Cleaning extensions.sqlite                    done  -0 Mbytes
 Cleaning dta_queue.sqlite                     done  -0 Mbytes
 Cleaning cookies.sqlite                       done  -.25 Mbytes
 Cleaning content-prefs.sqlite                 done  -0 Mbytes
 Cleaning addons.sqlite                        done  -0 Mbytes
du: cannot access ‘/home/yakir/.mozilla/firefox/{{PROFILE_ID}}.default/places.sqlite-wal’: No such file or directory

 Profile(s) for firefox reduced by 22.93 Mbytes.

({{PROFILE_ID}} == my profile id)

And when I press this command again I don't get this error (just when my Firefox open & close).

BTW - I use with your other tool as profile-sync-daemon.

Source for txt2man?

doc/pc.1 says:
"." Text automatically generated by txt2man"

Is the source text for this available?

solution to calling a function from xargs

hi i also wrote a script to do basically this same thing but system wide. To avoid needing two files, you can do this

function _worker() {
    your cleaning stuff here
}

export -f _worker

find ${path} -maxdepth 1 -type f -print0 | xargs -0 -n1 -I{} bash -c "_worker {}"

Not working on Debian 10

I compiled the latest git master, but it's not working. It says "I require bc but it's not installed. Aborting."

But bc is correctly installed in /usr/bin

Any idea how to figure out what's wrong here? :)

Gentoo install updates

Hi!

Gentoo install instructions currently read:

layman -a laurentb
emerge profile-cleaner

profile-cleaner is available in the Gentoo main repository by now, i.e. the laurentb overlay is no longer needed for this very task.
With some extra polishing on top, this is what I recommend for 2017-05 Gentoo instructions:

sudo emerge -av app-admin/profile-cleaner

Thanks and best

Sebastian

New Debian/Ubuntu packages? (since PPA archive is now -very- outdated)

Hi,
It looks like you may have had a build system in place to build DEBs or RPMs for Debian/Ubuntu/Redhat/CentOS in the past - is there code that could be added to the main repo to make this compatible with the packaging systems for these distros, in addition to the source packages/build instructions for Arch/Gentoo/etc ?!
I'm pretty sure this would be a useful package to have available for the Ubuntu/Debian ecosystem once again, as the old Launchpad project page/PPA is now considerable out-of-date!
Cheers,
veremitz/Michael.

Profile location for Tor Browser

On my system profile-cleaner doesn't detect Tor Browser's profile:

$ profile-cleaner to
profile-cleaner v2.35

Error: no profile directory for torbrowser found.

The following command works instead:

$ profile-cleaner p ~/.mozilla/torbrowser
profile-cleaner v2.35

 Cleaning places.sqlite                        done  -0 Mbytes
 Cleaning content-prefs.sqlite                 done  -0 Mbytes
 Cleaning cookies.sqlite                       done  -0 Mbytes
 Cleaning webappsstore.sqlite                  done  -0 Mbytes

 Profile(s) for paths reduced by 0 Mbytes.

My distribution is Gentoo Linux.

Packages:

  • www-client/torbrowser-45.4.0_p605 (from the torbrowser overlay)
  • app-admin/profile-cleaner-2.35 (from the laurentb overlay)

Flatpak apps support

Since official Firefox flatpak build available now is it possible to add support for optimizing Firefox flatpak version and maybe more flatpak browsers in future?

Firefox flatpak profile usually stored in this directory:

~/.var/app/org.mozilla.firefox/.mozilla/firefox

Debian: GPG Error - NO_PUBKEY

Hi.

Updating the repository generates an error (apt-get update):
In: GPG Error: http://ppa.launchpad.net quantal Release: The following signatures could not be verified due to lack of public key: NO_PUBKEY C1C5C63BF0E0B4E7

Debian 8 (LMDE Betsy) [Linux blmde 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux].

Wrong "apt-get install" for Linux Mint

Just a typo / copy-paster-error

It says "sudo apt-get install profile-cleaner" for Linux Minut but it should be "sudo apt-get install profile-cleaner" like for Ubuntu.

error in installation on mint 18.2

Preparing to unpack .../profile-cleaner_2.36-1_all.deb ...
Unpacking profile-cleaner (2.36-1) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 62 changed doc-base files, 2 added doc-base files...
Error in /usr/share/doc-base/xapian-python3-docs', line 9: all Format' sections are invalid.
Note: `install-docs --verbose --check file_name' may give more details about the above error.
Registering documents with scrollkeeper...
Processing triggers for man-db (2.7.5-1) ...
Setting up sysstat (11.2.0-1ubuntu0.2) ...

Creating config file /etc/default/sysstat with new version
update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode
Setting up parallel (20141022+ds1-1) ...
Setting up profile-cleaner (2.36-1) ...

Make sure that target browsers or email clients are not running when
invoking profile-cleaner. Failure to do so will result in the open files
NOT getting cleaned and reindexed.

$HOME/.config/profile-cleaner.conf will be created when the script is
called to run the first time. Edit it to select a color scheme.

Processing triggers for systemd (229-4ubuntu21.1) ...
wwwadm admz # install-docs --verbose --check /usr/share/doc-base/xapian-python3-docs
Warning in /usr/share/doc-base/xapian-python3-docs', line 9: file /usr/share/doc/python3-xapian1.3/index.html' does not exist.
Error in /usr/share/doc-base/xapian-python3-docs', line 9: all Format' sections are invalid.
/usr/share/doc-base/xapian-python3-docs: Fatal error found, the file won't be registered.
wwwadm admz #

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.