Lines 183-233
setup(name="scribes",
Link Here
|
183 |
"data/scribes_editing.png", "data/scribes_status.png"])], |
183 |
"data/scribes_editing.png", "data/scribes_status.png"])], |
184 |
scripts=["scribes"],) |
184 |
scripts=["scribes"],) |
185 |
|
185 |
|
186 |
|
|
|
187 |
################################################################################ |
188 |
# |
189 |
# GConf Installation |
190 |
# |
191 |
################################################################################ |
192 |
|
193 |
# Get gconf's default source |
194 |
|
195 |
cmd = "gconftool-2 --get-default-source" |
196 |
err, out = getstatusoutput(cmd) |
197 |
|
198 |
# Set up the gconf environment variable. |
199 |
|
200 |
putenv('GCONF_CONFIG_SOURCE', out) |
201 |
|
202 |
# Install gconf to the default source |
203 |
|
204 |
cmd = "gconftool-2 --makefile-install-rule data/scribes.schemas" |
205 |
err, out = getstatusoutput(cmd) |
206 |
|
207 |
if out: |
208 |
|
209 |
print "installing GConf schema files" |
210 |
|
211 |
if err: |
212 |
|
213 |
print 'Error: installation of gconf schema files failed: %s' % out |
214 |
|
215 |
# Kill the GConf daemon |
216 |
|
217 |
cmd = "killall gconfd-2" |
218 |
err, out = getstatusoutput(cmd) |
219 |
|
220 |
if err: |
221 |
|
222 |
print "Problem shutting down gconf." |
223 |
|
224 |
# Start the GConf daemon |
225 |
|
226 |
cmd = "gconftool-2 --spawn" |
227 |
err, out = getstatusoutput(cmd) |
228 |
|
229 |
if err: |
230 |
|
231 |
print "Problem restarting down gconf." |
232 |
|
233 |
print "scribes installation complete" |