Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernie Innocenti <bernie@codewiz.org>2010-03-24 21:21:50 (GMT)
committer Bernie Innocenti <bernie@codewiz.org>2010-03-24 23:37:17 (GMT)
commit76961b92fdcb09d99f7bd0cdf5274f4a341978e0 (patch)
tree555f92d10de3d95ef8a67f35aad9fade0465bd82
parentf0dd509b1cf15385756a64db275e314555cf4181 (diff)
Use gconftool to create PM config key in ~olpc/.gconfos115
-rw-r--r--modules/sugar/kspost.50.gconf.inc11
1 files changed, 3 insertions, 8 deletions
diff --git a/modules/sugar/kspost.50.gconf.inc b/modules/sugar/kspost.50.gconf.inc
index 1182331..ac9a53b 100644
--- a/modules/sugar/kspost.50.gconf.inc
+++ b/modules/sugar/kspost.50.gconf.inc
@@ -7,14 +7,9 @@ gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults
# set sugar power management off
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /desktop/sugar/power/automatic false
-# This is a horrible hack to stop ohm at the first time
-cat >/home/olpc/.gconf/desktop/sugar/power/%gconf.xml <<EOF
-<?xml version="1.0"?>
-<gconf>
- <entry name="automatic" mtime="1269435951" type="bool" value="false"/>
-</gconf>
-EOF
-chown olpc:olpc /home/olpc/.gconf/desktop/sugar/power/%gconf.xml
+# set sugar power management off also where ohmd will actually look for it
+gconftool-2 --direct --config-source xml:readwrite:/home/olpc/.gconf -s -t bool /desktop/sugar/power/automatic false
+chown -R olpc:olpc /home/olpc/.gconf
# set empty jabber server so that no gabble connection is attempted by default
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /desktop/sugar/collaboration/jabber_server ''