distributed bookmarking

View: New views
2 Messages — Rating Filter:   Alert me  

distributed bookmarking

by Robert Penz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I'm not on the list so please answer in cc to me. thx.

I want to write a software which allows me to have my bookmarks synchronized
between my various PCs. As I'm using mostly Konqueror (except sites that
don't work with it) I want to write it in the beginning for it, if there is
not allready a software which does following:

- synchronizing the bookmarks in the background. e.g. a new bookmark is
visible within minutes on the other running PCs

- the user should not see any differences to normal bookmarks, its just also
on the other PC too.

- the synchronizing is done over a server based on standard protocols like
webdav or SOAP so it works fine behind a company firewall/proxy.

- the clients poll the server or keep an connection open

As I'm not really a C++ programmer (python is my language of choice) and to be
more browser independent I would like to make a daemon/periodical called
script which looks at the bookmarks.xml and searches for changes and
synchronizes them.

- So the question is how can I inform the running konqueror processes that the
should reread the file?

- And can I lock the file during writing and konqueror is fine with it?

- Does Konqueror lock the file before writing?

ps: If someone is already writing or thinking of writing a plugin for
konqueror I'm happy to help with the server part/interface
specification/synchronization algorithms. Doing an extra client program is
just because I don't have c++ knowledge, the time to get into the konqueror
code and at a later point to do the same for firefox.

--
Regards,
Robert
----------------
Robert Penz
robert AT penz DOT name

Re: distributed bookmarking

by Bugzilla from faure@kde.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 12 January 2007, Robert Penz wrote:
> - So the question is how can I inform the running konqueror processes that the
> should reread the file?

Fixed now for kde-4.1:
qdbus org.kde.konqueror-25018 /KBookmarkManager/konqueror notifyCompleteChange
I -think- you only need to call it on one running konqueror, it will tell the others. Didn't test though.

Sorry it took so long.

> - And can I lock the file during writing and konqueror is fine with it?

I guess.

> - Does Konqueror lock the file before writing?

I don't think so. It uses KSaveFile to write it atomically (write to temp file, rename temp file),
but no lock needed (the coordination between konq instances is done by dbus anyway,
only one of them is writing the file after making a change).

--
David Faure, faure@..., sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
LightInTheBox - Buy quality products at wholesale price