View Single Post
Posts: 49 | Thanked: 93 times | Joined on Jan 2012 @ Finland
#7
Originally Posted by a12jun View Post
What is gconftool-2, and how would you know that this is the program you need to use to edit the profile
It is a GConf command line tool to read and write values of the stored keys and much more. Maybe you should introduce to yourself with the basics of GConf at first. It is a system to store application preferences, similar to the Windows register. You may also want to check the syntax of the command:

Code:
gconftool-2 --help
Originally Posted by a12jun View Post
what does the "string [......] do? Is 'string' some sort of operator?
String is the datatype of the given key value, i.e. the valid string values of the key /system/osso/dsm/display/color_profile are "Muted", "Neutral" or "Vivid" in this case.

By the way, you probably need to check the currently set colour profile in your script to make the decision what should be the next profile. This is how it is read:

Code:
gconftool-2 --get /system/osso/dsm/display/color_profile