← Back to team overview

openshot.developers team mailing list archive

Re: Preferences/settings

 

Hello,

I agree with TJ about putting the config in ~/.openshot for the
following reasons:

  ~/.config is confined to only holding config files
  ~/.<app-name> is the conventional place to store configs and user data
            (typified by the use of ~/.evolution and ~/.mozilla)

  As OpenShot matures, there will be a future need for a place to store
  user data such as user defined filters, transitions, masks, profiles, 
  templates, etc. The logical place for this would be in ~/.openshot

I agree with TJ about using a formal XML Schema for all OpenShot config
and project definitions.

Apart from the obvious benefit of having a well structured and ordered
dataset, with standardised methods of accessing it (important for future
developers on OpenShot), There are a whole host of other benefits from
using an established XML library and our own XML Schema.

One benefit will be to make it easier in future to exchange data with
other apps (maybe Blender).This use is central to the ethos of XML.

Another benefit will be to make it easier to develop future plugins such
as the StoryBoard system I would like to design when we have got
OpenShot to full release.

Another would be to improve the useability for prosumer users by
enabling them to generate production reports for clients.

Many many more benefits can come from using XML.

If I work with Andy to develop a formal XML Schema for OpenShot, it will
give me some much needed additional practice in designing and using XML
Schemas. I have, as TJ mentions, been studying the subject and started
developing Schemas for another project related to the aims and
objectives I have for the circus company.

Best wishes, Helen




On Mon, 2009-09-21 at 12:53 +0100, TJ wrote:
> 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/".
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers
> Post to     : openshot.developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openshot.developers
> More help   : https://help.launchpad.net/ListHelp
> 





Follow ups

References