default settings not taken into accounts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcompizconfig (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The default compiz settings are set in /etc/compizconf
But in the code (src/config.c), the global file is only read in ccsReadConfig if there is no "iniFile" (called by getConfigFile). The thing is that getConfigFile is calling ccsIniOpen which creates the file! so the global file is never read.
Ok, we can thing that replacing that by:
char *localConfigFil
FILE *fp;
/* check if the local config file exists instead of relying in the iniFile
and getConfigFile will always return one (eventually created by
ccsIniOpen) */
printf ("Time for the global config file\n");
localConfig
fp = fopen (localConfigFil
free (localConfigFil
if (!fp)
return ccsReadGlobalConfig (option, value);
fclose (fp);
printf ("read local config file\n");
iniFile = getConfigFile();
can work… but unfortunately, ccsReadConfig is called multiple times at initialisation and it seems that the old config is just scratched.
Pretty easy to reproduce, under gnome, check that you have a global compiz config file with backend=gconf under GNOME.
Then, remove/rename ~/.config/compiz-1/
Start compiz: you will get: Backend : ini
It seems that it can't find on first load the global file. let me see…
This bug was fixed in the package libcompizconfig - 0.9.2.1-0ubuntu3
---------------
libcompizconfig (0.9.2.1-0ubuntu3) natty; urgency=low
* debian/ patches/ 01_get_ global_ config. patch: compizconfig/ config, debian/ libcompizconfig 0.install: patches/ series (wasn't present in the transition) patches/ 04_fix_ ini_fallback. patch as it's dealt upstream
- don't ignore global configuration file because of invalid path
(LP: #676958)
* debian/
- ship rather upstream file.
* add debian/
* removed debian/
-- Didier Roche <email address hidden> Thu, 18 Nov 2010 14:29:28 +0100