forked from GPII/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpretest.sh
More file actions
executable file
·29 lines (25 loc) · 1.06 KB
/
pretest.sh
File metadata and controls
executable file
·29 lines (25 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Pretest cleanup steps for gsettings bridge
#
# Copyright 2017 Raising the Floor International
#
# Licensed under the New BSD license. You may not use this file except in
# compliance with this License.
#
# You may obtain a copy of the License at
# https://github.com/GPII/linux/blob/master/LICENSE.txt
#
#!/bin/bash
LOC="/usr/share/glib-2.0/schemas"
SCRIPT_PATH=$(dirname "$0")
echo SCRIPT PATH: $SCRIPT_PATH
# Copy schemas to global location and compile them
sudo cp $SCRIPT_PATH/../data/net.gpii.testing.gsettings.gschema.xml $LOC
sudo glib-compile-schemas $LOC
# Make sure they are reset in case they already existed
gsettings reset-recursively net.gpii.testing.gsettings.single-get
gsettings reset-recursively net.gpii.testing.gsettings.single-set
gsettings reset-recursively net.gpii.testing.gsettings.multi-get1
gsettings reset-recursively net.gpii.testing.gsettings.multi-get2
gsettings reset-recursively net.gpii.testing.gsettings.multi-set1
gsettings reset-recursively net.gpii.testing.gsettings.multi-set2
gsettings reset-recursively net.gpii.testing.gsettings.multi-set3