Need to make changes made by ccsm on the command line

Asked by Jerry Robinson

For production purposes, we need to be able to replicate, using the command line (I imagine by using gfconftool-2 -s), changes made using ccsm. How would one backtrack those changes?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu compizconfig-python Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

Try
man gconftool-2

e.g. to view diff
list custom values
gconftool-2 --recursive-list /apps/compiz-1/plugins/composite
reset to default
gconftool-2 --recursive-unset /apps/compiz-1/plugins/composite
list default values
gconftool-2 --recursive-list /apps/compiz-1/plugins/composite

http://projects.gnome.org/gconf/

Not sure, it could be that 13.04 ccsm is using gsettings (dconf).

Revision history for this message
Jerry Robinson (gt-jerry-yq) said :
#2

ccsm is using dconf. So a restatement of the question would be... how do I import a compiz profile from the command line? I can see the changes using dconf -dump /org/compiz, but I can't find any way to import those settings not using the GUI.

Revision history for this message
Best Sam_ (and-sam) said :
#3

Maybe it's similar to gconf using 'load'.
gconftool-2 --dump /apps/compiz > gconf.compiz.backup.xml.dump
gconftool-2 --load=gconf.compiz.backup.xml.dump

There it says dconf is using profiles.
http://askubuntu.com/questions/93923/where-are-the-dconf-profiles

Revision history for this message
Jerry Robinson (gt-jerry-yq) said :
#4

That got it. In my specific case, I needed to do the following...
dconf dump /org/ > dconforg.dat
dconf load /org/ < dconfiorg.dat

Important: To get the dconf load command to work from within puppet (which we were trying to do), we needed to make sure the script was running as the user for whom we wanted the settings to apply, and we had to run this command first...
/bin/sh -c eval `dbus-launch --auto-syntax`.

Thanks!

Revision history for this message
Jerry Robinson (gt-jerry-yq) said :
#5

Thanks Sam_, that solved my question.