Skip to content

Commit

Permalink
v1.2
Browse files Browse the repository at this point in the history
look for `lock` file instead of `webappsstore.sqlite-shm` to detect if firefox is running or not (with this profile)

see #405 (comment) and follow-up comments.

Thanks @atomGit for reporting the issue and @rusty-snake for confirming it.
  • Loading branch information
earthlng committed Feb 10, 2020
1 parent 7619e31 commit cd9fc11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prefsCleaner.sh
Expand Up @@ -2,7 +2,7 @@

## prefs.js cleaner for Linux/Mac
## author: @claustromaniac
## version: 1.1
## version: 1.2

## special thanks to @overdodactyl and @earthlng for a few snippets that I stol..*cough* borrowed from the updater.sh

Expand All @@ -27,7 +27,7 @@ fQuit() {
fFF_check() {
# there are many ways to see if firefox is running or not, some more reliable than others
# this isn't elegant and might not be future-proof but should at least be compatible with any environment
while [ -e webappsstore.sqlite-shm ]; do
while [ -e lock ]; do
echo -e "\nThis Firefox profile seems to be in use. Close Firefox and try again.\n"
read -p "Press any key to continue."
done
Expand Down Expand Up @@ -58,7 +58,7 @@ echo -e "\n\n"
echo " ╔══════════════════════════╗"
echo " ║ prefs.js cleaner ║"
echo " ║ by claustromaniac ║"
echo " ║ v1.1"
echo " ║ v1.2"
echo " ╚══════════════════════════╝"
echo -e "\nThis script should be run from your Firefox profile directory.\n"
echo "It will remove any entries from prefs.js that also exist in user.js."
Expand Down

0 comments on commit cd9fc11

Please sign in to comment.