openshot.developers team mailing list archive
-
openshot.developers team
-
Mailing list archive
-
Message #00326
Re: Preferences/settings
On Mon, 2009-09-21 at 10:15 +0100, Andy Finch wrote:
> I'm looking to start work on implementing the first lot of preferences
> into Openshot. There seems to be 2 ways to go - either use GCONF, or
> follow the freedesktop.org recommendation and use a config file in
> ~/.config/openshot, with XDG being able to pick up the location of the
> settings file.
I'd suggest going the XDG route since gconf is so gnome-centric. Id also
suggest using an XML schema and an xml library to read/write it.
There are already far too many arbitrary text and binary
configuration-file layouts and it would be a shame to add another to the
stew :)
Helen's getting some experience of designing XML schemas so it might be
something she can define.
There are no packaging issues unless there is an intention to ship
package-default settings.
In that case they should be installed to "/usr/share/openshot/config/"
or similar (by the package) and the application should copy from there
into the user's home directory if, when it starts, the file is not
there. I'd suggest putting it in "~/.openshot/".
Follow ups
References