LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-15-2009, 08:09 PM   #1
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279
Blog Entries: 1

Rep: Reputation: 31
Firefox and sqlite


With rel 3 of firefox, the bookmarks are now kept in an sqlite database. It seems to be a very shaky system --- just take a look at the mozilla web pages about recovering a corrupted database - including the "tough luck Charley, your going to loose 'em"

When I start firefox, all of my bookmarks are there, but I have not been able to export them; and have not been able to restore them from the backups.

I do know how to write an sqlite "select" statement, but have not been able to find the bookmark names and descriptions in the database.

The reason for this post is to ask if
anyone can point me to a description of the bookmarks database that will help me find my bookmarks so I can build a file of them to put into a different browser.

I am done with firefox (and seamonkey)
 
Old 01-15-2009, 08:34 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
The reason for this post is to ask if anyone can point me to a description of the bookmarks database that will help me find my bookmarks so I can build a file of them to put into a different browser.
Generally, to modify the bookmarks, select the Bookmarks menu, then select the Organize Bookmarks option.

There also is an add-on called SQLite Manager that allows direct inspection and modification of the sqlite data.

The decision to use sqlite is Yet Another Example of developers shoving their toys down the throats of end-users.

Perhaps the sqlite model better supports tagging and other fringe elements of maintaining bookmarks, but for those who have no such needs, the old-fashioned HTML bookmark list was great. People who do not use favicons, tagging, or anything else related to that should be provided the option to use the old-fashioned bookmark model.

A part about this decision I dislike is deleting history does not always work. History is now contained in the same data container as bookmarks. I have found that the best way is to close Firefox, delete all the JSON bookmark backups, and delete places.sqlite. I have the browser.bookmarks.autoExportHTML option set to true and that forces Firefox to save the bookmarks in the old format in the location I specify in browser.bookmarks.file option. I never used the address bar history much anyway.

Not to mention the sluggishness of XUL and the irritating GTK interface rather than a native QT for KDE users.

Sure, the code is free to modify --- if one has the skills or money to hire somebody who does. In other words, the software is not much different than proprietary software.

I sure hope Konqueror becomes a much better browser in 4.x. Or the Opera devs add a few tweaks I want. I too am weary of the Mozilla philosophy.
 
Old 01-15-2009, 08:52 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
There is also a GUI you can use to examine sqlite data base files. It may be in your distribution's repositories.
 
Old 01-15-2009, 09:17 PM   #4
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by Woodsman View Post
Generally, to modify the bookmarks, select the Bookmarks menu, then select the Organize Bookmarks option.
Unfortunately that does not work. I have been to the mozilla web page, that leads me to believe that the bookmarks database is corrupted.

Quote:
There also is an add-on called SQLite Manager that allows direct inspection and modification of the sqlite data.
I have it; There are ten tables involved; and it looks like there might be pointers to other files -- anyway I failed to find the bookmarks in their bookmark database; That raises the question "if they are not in the database, how come the browser still has them?"

I set "browser.bookmarks.autoExportHTML" from the "about:config" browser page to 'true'; and added the entry "browser.bookmarks.file"; But after starting and restarting firefox, no .htlm file.

Thanks you for the reply, Woodsman

Gary

Last edited by garyg007; 01-15-2009 at 09:19 PM.
 
Old 01-15-2009, 09:23 PM   #5
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by garyg007 View Post
When I start firefox, all of my bookmarks are there, but I have not been able to export them; and have not been able to restore them from the backups.
From the "Bookmarks" menu choose "Organize Bookmarks", then use the "Import and Backup" dropdown menu to do backups, or import/export your bookmarks from/to an HTML file.

I thought the menu names were straight forward and no one would have difficulties finding them.
 
Old 01-15-2009, 09:26 PM   #6
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by guanx View Post
From the "Bookmarks" menu choose "Organize Bookmarks", then use the "Import and Backup" dropdown menu to do backups, or import/export your bookmarks from/to an HTML file.

I thought the menu names were straight forward and no one would have difficulties finding them.
Sorry, been there, done that --- it does not work;

Last edited by garyg007; 01-15-2009 at 09:27 PM.
 
Old 01-15-2009, 09:30 PM   #7
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by garyg007 View Post
Unfortunately that does not work. I have been to the mozilla web page, that leads me to believe that the bookmarks database is corrupted.
I exported my bookmarks to an HTML file, and imported them to another system. It just works. Maybe I'm lucky.
 
Old 01-15-2009, 09:31 PM   #8
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by guanx View Post
i exported my bookmarks to an html file, and imported them to another system. It just works. Maybe i'm lucky.

like i said: Been there, done that ----- it did not work
 
Old 01-15-2009, 09:33 PM   #9
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Fascinating. I had no idea that this was being done.

Though I find sqlite to be a very useful tool, I wouldn't consider it for something like a bookmark manager. Too much like using an elephant gun to kill a gnat.

And FF3 definitely is annoyingly slow.
 
Old 01-15-2009, 09:48 PM   #10
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by jiml8 View Post
Fascinating. I had no idea that this was being done.

Though I find sqlite to be a very useful tool, I wouldn't consider it for something like a bookmark manager. Too much like using an elephant gun to kill a gnat.

And FF3 definitely is annoyingly slow.
FF3 is much faster than FF2 but consumes awefully large amount of memory.
 
Old 01-15-2009, 11:12 PM   #11
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279

Original Poster
Blog Entries: 1

Rep: Reputation: 31
A little more google searching yielded info that there is an SQLite Manager addon for firefox that appeared to be a little easier to use than sqliteman. I found that little tidbit HERE. That page describes a little bit about the bookmark database.

Using the sqlite firefox plugin, three corrupted tables were found; then I exported the places.sqlite master table.

Now to see I I can figure out how to re-load it

Last edited by garyg007; 01-15-2009 at 11:14 PM.
 
Old 01-16-2009, 10:49 AM   #12
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279

Original Poster
Blog Entries: 1

Rep: Reputation: 31
S u c c e s s

Correcting the problem was simple, and streight forward and worth a try if your firefox is version 3 - which uses sqlite database for bookmarks.

This worked for me, no quarentee it will work for you; but if it does, its a whole lot simpler than what mozilla wants to put you through.
I tried it with a test "places.sqlite" before rebuilding the real bookmark file.

As simple as this:
Code:
root@abitbox:~# sqlite3 ~/path/to/places.sqlite .dump > ~/path/to/places.dump.sql
root@abitbox:~# rm ~/path/to/places.sqlite
root@abitbox:~# sqlite3 ~/path/to/places.sqlite  < ~/path/to/places.dump.sql
I have not chacked to see if anything was lost; what is important is that I at least got most of it back.

Gary
 
Old 01-16-2009, 12:50 PM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Interesting, and good to know. Thanks for posting the solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replication and SQLite krizzz Programming 3 12-01-2015 03:45 PM
Using the cookies.sqlite from Firefox 3 in wget jimbo1708 Linux - Software 18 06-28-2014 11:32 AM
SQLite and Unicode zoobave Linux - Software 0 08-08-2007 02:09 AM
SQLite and C++ ManuPeng Programming 4 04-07-2007 10:38 AM
SQLite JavaWrapper netjack Linux - Software 0 05-10-2006 01:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration