Remove env.get_shell_dir(), use config

This commit is contained in:
Marco Pesenti Gritti 2008-02-04 23:29:08 +01:00
parent dbe42ac6d9
commit 652df4bf51
6 changed files with 3 additions and 8 deletions

View File

@ -9,6 +9,7 @@ sugar-xo.gtkrc: gtkrc.em
sugardir = $(pkgdatadir)/data
sugar_DATA = \
activities.defaults \
kbdconfig \
mime.defaults \
$(GTKRC_FILES)

View File

@ -80,8 +80,5 @@ def get_user_library_path():
def get_service_path(name):
return _get_sugar_path('services', name)
def get_shell_path(path=None):
return _get_sugar_path('shell', path)
def get_data_path(path=None):
return _get_sugar_path('data', path)

View File

@ -7,7 +7,4 @@ sugar_PYTHON = \
main.py \
shellservice.py
confdir = $(pkgdatadir)/shell
conf_DATA = kbdconfig
EXTRA_DIST = $(bin_SCRIPTS) $(conf_DATA)

View File

@ -17,4 +17,4 @@
prefix = '@prefix@'
bin_path = '@prefix@/bin'
data_path = '@prefix@/share/sugar'
data_path = '@prefix@/share/sugar/data'

View File

@ -45,7 +45,7 @@ def _start_matchbox():
cmd.extend(['-use_titlebar', 'no'])
cmd.extend(['-theme', 'sugar'])
cmd.extend(['-kbdconfig', env.get_shell_path('kbdconfig')])
cmd.extend(['-kbdconfig', os.path.join(config.data_path, 'kbdconfig')])
gobject.spawn_async(cmd, flags=gobject.SPAWN_SEARCH_PATH)