[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xdg
Subject: Re: Bookmarks shared among desktop environments
From: Jamie McCracken <jamiemcc () blueyonder ! co ! uk>
Date: 2005-04-18 20:31:34
Message-ID: 42641926.4070100 () blueyonder ! co ! uk
[Download RAW message or body]
Waldo Bastian wrote:
> On Monday 18 April 2005 20:39, Jamie McCracken wrote:
>
>>We dont need a solution to this for Dconf at this point. However I
>>suspect the keys will look something like :
>>
>>Key Value
>>org.freedesktop.bookmarks.web.1.uri http://www.slashdot.org
>>org.freedesktop.bookmarks.web.1.displayname Slashdot
>>org.freedesktop.bookmarks.web.2.uri http://linuxtoday.com
>>org.freedesktop.bookmarks.web.2.displayname Linux Today
>>
>>org.freedesktop.bookmarks.folder.1.uri /home/jamie/documents
>>org.freedesktop.bookmarks.folder.2.uri /home/jamie/hacking
>
>
>
> That's something that bothers me about key based configuration systems... what
> happens if I remove org.freedesktop.bookmarks.web.1 ? Do my bookmarks then
> start at 2? Are 1 and 2 some sort of sequence numbers, or should they be seen
> as unique identifiers? Should the config system have a function for "give me
> a new id that isn't used yet" ?
I agree it is sub optimal - a Db table would be better cause you can
have an order column with a trigger in place to automatically keep the
values in sync plus theres no need to split them up into seperate keys
(ergo my desire to see structured data in DConf)
However in this context it is an ID. RDBMS use sequence generators to
overcome this problem so you might have a key to store the next value in
the sequence.
It might also be better to have the key value in csv format so you could
have structured data in a single key:
EG for key :org.freedesktop.bookmarks.web
value: "http://slashdot.org","Slashdot","http://linuxtoday.com","Linux
Today"
jamie.
>
> Cheers,
> Waldo
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> xdg mailing list
> xdg@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xdg
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic