[compiz] Read commandline defaults from a file?

David Reveman davidr at novell.com
Sat Jul 28 13:30:44 PDT 2007


On Sat, 2007-07-28 at 10:46 +0200, dragoran wrote:
> David Reveman wrote:
> > On Thu, 2007-07-12 at 10:42 +0200, dragoran wrote:
> >   
> >> Right now compiz has hardcoded defaults for command line options like 
> >> direct vs indirect rendering etc.
> >> Because most users use scripts like gnome-wm to start compiz its not 
> >> that easy for them to change this options. My solution would be to have 
> >> a file (~/.compizrc) where the default values are saved. So that compiz 
> >> checks for the file first and pic up this values. If no file is found it 
> >> fails back to the hardcoded one.
> >> Would this cause any problems? If not I can implement it and send patches.
> >>     
> >
> > We should just make all these command line options real options with
> > metadata attached to them. That way you can easily patch the metadata
> > files to change the default values for them or override them by putting
> > you're own metadata files in ~/.compiz.
> >
> >   
> but can settings like direct/indirect rendering be set this way?

Sure, we probably don't want to go through the trouble of making such an
option adjustable after initialization but that's not a problem, it can
be read-only.

-David



More information about the compiz mailing list