Comment 14 for bug 1036752

Revision history for this message
Jason Conti (jconti) wrote :

Hi Sam,

Yes the COMPIZ_CONFIG_PROFILE environment variable is still used, but if unset or the empty string compiz first checks GNOME_DESKTOP_SESSION_ID, which in quantal is currently set to 'this-is-deprecated'. If it is set, then it returns the section name as "gnome_session". Doesn't really matter though, it will default to Default.ini even if the section is missing, but as far as I can tell there isn't any code that reads an ini from /etc/compizconfig/ (and just dropping a Default.ini file in there and loading the gnome classic session only loads the "core" and "ccp" plugins).

I took a look at the natty package to see how it was handled there, and the code seems basically the same, so I don't think it would load an ini from /etc/compizconfig/ there either. The only difference I noticed was that /etc/compizconfig/config in natty looks like:

[kde4_session]
backend = kconfig4
integration = true
plugin_list_autosort = true

[kde_session]
backend = kconfig
integration = true
plugin_list_autosort = true

[gnome_session]
backend = gconf
integration = true
plugin_list_autosort = true

[general]
backend = ini
plugin_list_autosort = true

[general_ubuntu]
backend = gconf
integration = true
plugin_list_autosort = true
profile = unity

We only have the [general] and [general_ubuntu] sections in quantal (with the ubuntu section using gsettings now instead of gconf). We can't use gconf for gnome_session since that backend was dropped in the transition. I'd like to use gsettings but I can't figure out how to make it work since we would need to set defaults for the same key with different paths (or run a script when the user logs in checking if the key is set and then setting it, I don't really like that idea).