forked from godiard/olpc-os-builder
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create gsettings overrides files instead of using gconftool-2. Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
- Loading branch information
Showing
4 changed files
with
34 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
# Sugar font | ||
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type float --set /desktop/sugar/font/default_size 7 | ||
cat >/usr/share/glib-2.0/schemas/sugar.oob.gschema.override <<EOF | ||
[org.sugarlabs] | ||
show-logout=false | ||
|
||
# disable logout button in Sugar | ||
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /desktop/sugar/show_logout false | ||
[org.sugarlabs.font] | ||
default-size=7 | ||
|
||
# set sugar power management on | ||
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /desktop/sugar/power/automatic true | ||
[org.sugarlabs.power] | ||
automatic=true | ||
|
||
# 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 '' | ||
[org.sugarlabs.collaboration] | ||
jabber-server='' | ||
|
||
[org.sugarlabs.user] | ||
default-nick='disabled' | ||
EOF | ||
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas | ||
|
||
# Ask for the nick name when starting Sugar the first time | ||
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /desktop/sugar/user/default_nick 'disabled' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# Add the information about the model to display in the sugar ui | ||
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults -s /desktop/sugar/extensions/aboutcomputer/hardware_model XO-duo --type string | ||
cat >/usr/share/glib-2.0/schemas/sugar.oob.xo4.gschema.override <<EOF | ||
[org.sugarlabs.extensions.aboutcomputer] | ||
hardware-model='XO-duo' | ||
EOF | ||
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas |