Last active
September 20, 2024 16:30
-
-
Save dshnkao/10865f32d69e40dc591e08e3af970e9d to your computer and use it in GitHub Desktop.
open firefox history using fzf or rofi
if you use call the function while firefox is open you'll get an error because the db is locked.
So I added something like:
tmpfile=$(mktemp /tmp/ffhist.XXXXX)
cp -f ~/.mozilla/firefox/PROFILEPATH/places.sqlite $tmpfile
you can circumvent the lock because you are not modifying the table; no need to copy the whole database. just replace your DB_PATH
with:
"file:$DB_path?immutable=true"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Neat idea, I like it!