From kfm-devel Sat Oct 14 08:21:08 2006 From: Thiago Macieira Date: Sat, 14 Oct 2006 08:21:08 +0000 To: kfm-devel Subject: Re: Share/sync bookmarks and cookies between Konqueror and Firefox? Message-Id: <200610141021.19760.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kfm-devel&m=116081412308083 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1717226.CHYEUe5suM" --nextPart1717226.CHYEUe5suM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline M. Fioretti wrote: >In other words, I'd like to know if there is any way to make Konqueror >and Firefox use the *same* bookmark and cookie files, so that the two >browsers are always configured (from this point of view) in the same >way without manually importing and exporting stuff every other day. While it is technically possible to do it, in practice it's only feasible=20 worth doing it if the Firefox developers are willing to modify some of=20 their code too. Konqueror uses IPC to notify different running instances=20 of changes to the bookmark file: Firefox would have to cooperate by=20 sending the same IPC signals. The cookies file gets more complicated: Konqueror doesn't access it=20 directly, but via a centralised process (kcookiejar). This avoids the=20 need for a notification, but it's possible to make kcookiejar cooperate=20 with an external process. It would be much nicer if Firefox simply used=20 kcookiejar for its cookies instead... >How can this be done? Is it possible to do it _without_ hacking the >source code, that is only using symlinks, configuration/environment >variables, Perl or other scripts (manually or by cron) which convert >from one format to another, etc... No. The file formats are different. However, they can be converted to/fro=20 one another. You can, thus, have a script that syncs one's file from the=20 other's every N minutes. KDE's files are: $KDEHOME/share/apps/konqueror/bookmarks.xml $KDEHOME/share/apps/kcookiejar/cookies =46irefox's files are: ~/.mozilla/firefox//bookmarks.html ~/.mozilla/firefox//cookies.txt =2D-=20 =A0 Thiago Macieira =A0- =A0thiago (AT) macieira.info - thiago (AT) kde.org =A0 =A0 PGP/GPG: 0x6EF45358; fingerprint: =A0 =A0 E067 918B B660 DBD1 105C =A0966C 33F5 F005 6EF4 5358 --nextPart1717226.CHYEUe5suM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFMJ3/M/XwBW70U1gRAiK9AJ0bN0+mFYRIC2Fsowy0OIiUqfj3LwCgtYTT mThctzT17aLAWDYGX8RVFXs= =TT/q -----END PGP SIGNATURE----- --nextPart1717226.CHYEUe5suM--