- bookmark-icon-{name}.png - 32x32 px icon you see in the bookmark list
- {name}-bookmark-icon.png - 64x64 px icon that doesn't seem to appear anywhere
- {name}-bookmark-thumbnail.png - 90x120 px thumbnail that appears when you start the browser
I'm not happy with the way the Pre tries to make images for you, so I created some of my own. (I also use a better naming convention for the files).
To add your own images:
1. Copy the default bookmark images from /var/luna/data/browser/images to you PC (use WinSCP or copy them to /media/internal and then use the USB cable). They make good templates for creating new images.
2. Create some new images. Here are mine for m.cnn.com:
(cnn-icon32.png)
(cnn-icon64.png)
(cnn-thumbnail.png)
3. Copy the images to your Pre under /var/luna/data/browser/images .
4. Become root and make your filesystem read-write:
$ sudo -i # rootfs_open -w
# /usr/bin/sqlite3 /var/palm/data/file_.usr.palm.applications.com.palm.app.browser_0/0000000000000004.db
sqlite> begin transaction; sqlite> insert into bookmarks (url,title,defaultEntry,iconFile32,iconFile64,thumbnailFile) values ('http://m.cnn.com','CNN',1,'/var/luna/data/browser/icons/cnn-icon32.png','/var/luna/data/browser/icons/cnn-icon64.png','/var/luna/data/browser/icons/cnn-thumbnail.png'); sqlite> commit; sqlite> .exit
To view all you bookmarks in the database:
sqlite> .header on sqlite> select * from bookmarks;
- id - numeric ID
- url - URL
- title - Title
- date - numeric representing the date-time the bookmark was added
- parent - ?
- idx - numeric controlling sort order of the bookmarks (when two or more bookmarks have the same idx value, the browser sorts on title)
- defaultEntry - numeric: 0 for bookmarks you add through the browser, 1 for "built-in" bookmarks (Pre won't mess with the images)
- iconFile32 - path to the 32x32 px icon
- iconFile64 - path to the 64x64 px icon
- visitCount - number of times you selected the bookmark
- thumbnameFile - path to the thumnail
- lastVisited - numeric representing the date-time last time you selected the bookmark
- startIdx - ?
originally found here:
http://forums.precentral.net/web-os-development/194160-does-anyone-know-where-browser-images-stored.html