We have moved to a new Sailfish OS Forum. Please start new discussions there.
9

Web bookmark icons in Launcher

asked 2014-12-03 22:48:02 +0200

ssahla gravatar image

When you add a Browser bookmark to the Launcher, the icon it gets can be

  • a thumbnail of the bookmarked site, or
  • a favicon (or similar site icon), or
  • a generic bookmark icon.

Examples of each of these in this image:

image description

What interests me:

  • Why does Facebook (m.facebook.org) get a "proper" icon here, when maemo.org doesn't? Does it provide a bigger favicon, suitable for use as a Launcher icon? Or is it something else than a favicon?

  • Pulse (www.pulse.me) gets a generic icon. The Browser doesn't read multiple-size favicons properly, which may be the reason why it doesn't get a proper icon, but why doesn't it get a thumbnail either?

edit retag flag offensive close delete

Comments

I remember on the N9, it had something to if with a favicon provided by the page. Not all ways of descibing such a favicon in HTML were recognized, though.

I remember I changed the source code on my blog specifically for the N9. The Jolla browser seems to follow other specifications yet again, at least the code that worked on the N9 doesn't on Jolla. :(

I wasn't able to find out what is needed, tough.

ossi1967 ( 2014-12-03 23:08:17 +0200 )edit
1

Browser is open source no? You can look up the details and provide fixes! :).

tortoisedoc ( 2014-12-03 23:09:41 +0200 )edit

@tortoisedoc, thanks for the hint :) Seriously, I'd do that, but I lack the knowledge to understand the source code properly, let alone improve it! Of course, no harm in looking at it anyway...

ssahla ( 2014-12-03 23:35:09 +0200 )edit
1

Looked at the source code; if I understand correctly, a site must have minimum 64px favicon for it to be used as Launcher icon. That makes sense, as a smaller one (upsampled) wouldn't look very good in the Launcher. Still, I don't know why Pulse gets the generic icon.

ssahla ( 2014-12-04 22:33:47 +0200 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2015-04-06 19:37:48 +0200

axaq gravatar image

updated 2015-04-06 20:13:13 +0200

With update 11 we got the same bookmark icons in the grid view when adding a new bookmark. Old bookmarks are not converted automatically. You need to remove and readd the old bookmarks. Before adding a new bookmark you can zoom and move the page content to your liking so you can better recognize your favicon thumbnail.

And you can also edit the favicon manually in

.local/share/org.sailfishos/sailfish-browser/bookmarks.json

Have not tried yet to use a file URL to a local png screenshot. If that doesn't work you need to base64 encode the png and copy that into the file.

Edit:

I was able to use my own thumbnail:

  1. load the desired web page inside the browser and zoom it as you like
  2. make a screenshot with the Screenshot app (use jpg file format to be able to crop it in Gallery app)
  3. close the browser
  4. load the picture in Gallery and crop it square (otherwise it will be squeezed not 1:1)
  5. edit the "favicon" line of your bookmark and put in the file url like:

    "favicon": "file:/home/nemo/Pictures/screenshots/20150406184155_1.jpg",

  6. change also the "hasTouchIcon" tag to false:

    "hasTouchIcon": false,

  7. save and close the bookmark.json file

  8. open the browser and have a look at the bookmark grid and enjoy your new favicon/thumbnail ;-)
edit flag offensive delete publish link more

Comments

Oh cool thanks, I've removed/re-added my bookmarks and now they have favicons/thumbnails even offline :)

Edit: ok, hasTouchIcon: false makes the image displayed with the rounded bottom-right corner.

Sthocs ( 2015-04-07 11:04:12 +0200 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-12-03 22:48:02 +0200

Seen: 595 times

Last updated: Apr 06 '15