Shared Browser Bookmark and History Standard Biju Philip Chacko botsie@users.sf.net This DRAFT standard defines a method by which different web browsers should share bookmarks and history. Table of Contents Introduction .........................................................3 Bookmarks ............................................................3 History...............................................................4 Introduction Need for this standard There is currently a profusion of web browsers available for Unix desktops. Users often switch between browsers. They may wish try out a new alternative or perhaps a particular browser is more suited a particular task. Switching browsers can be annoying and inconvenient, especially when the user has a highly customised bookmark list or if he relies on the browser history to help him remember a URL. In addition, this lack of uniformity prevents effective use of bookmarks by third- party applications and system administrators for providing links to websites such as support sites or company intranets. Workarounds usually require the users to use a particular web browser. This document specifies a solution to this problem by defining a standard by which browsers can share bookmarks and history. Referenced Standards This standard references the following Freedesktop.org standards: · Desktop Menu Specification 1 · XDG Base Directory Specification 2 · Desktop Entry Specification 3 Bookmarks The Bookmark Menu spec is based on the Desktop Menu Spec. It is identical in most respects. The main differences are: · File Locations · Desktop Entry Types · Registered Categories · Registered OnlyShowIn Environments File Locations The following files and file locations are used by the bookmark spec: $XDG_CONFIG_DIRS/menus/bookmarks.menu This file contains the XML definition of the main bookmarks menu layout. $XDG_DATA_DIRS/bookmarks/ This directory contains a .desktop file for each possible bookmark. $XDG_DATA_DIRS/bookmark-directories/ This directory contains directory entries which may be associated with folders in the bookmark menu layout. 3 Shared Browser Bookmark and History Standard Desktop Entry Types All Desktop Entries used by this spec must be of type 'link'. All other types must be ignored. Registered Categories This DRAFT doesn't contain any registered categories yet. The author assumes that a reasonable list of categories can be created from community discussion. Registered OnlyShowIn Environments Browsers that support this standard should register a unique identification string to be used as a 'OnlyShowIn' value. History The scope of shared history is limited to URLs explicitly requested by the user. It does not include the browsing history accessable through the 'Back' and 'Forward' functions of the browser. Browser history is stored in $XDG_DATA_HOME/browser/history. A .desktop file is created for each URL to be saved. All desktop entries must be of type 'link'. All other types must be ignored. Extensions to the Desktop Entry Spec Ordering of history items is implementation dependent. However, to facilitate order- ing by 'most recently used', this standard defines a new Desktop Entry key 'Times- tamp' of type 'numeric'. This key contains the number of seconds since the Epoch when the URL was last used. Notes 1. http://www.freedesktop.org/standards/menu/draft/menu-spec/menu- spec.html 2. http://www.freedesktop.org/standards/basedir/draft/basedir-spec/basedir- spec.html 3. http://www.freedesktop.org/standards/desktop-entry-spec.html 4