2010-02-26 00:03:06 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -f "$0.in" ]
|
|
|
|
then
|
|
|
|
scriptDir="`dirname $0`"
|
|
|
|
uiDir="$scriptDir/../data"
|
|
|
|
jsDir="$scriptDir/../js"
|
2010-05-05 21:05:42 +00:00
|
|
|
schemaDir="$scriptDir/../data"
|
2010-02-26 00:03:06 +00:00
|
|
|
else
|
|
|
|
uiDir="@pkgdatadir@"
|
|
|
|
jsDir="@pkgdatadir@/js"
|
2010-05-05 21:05:42 +00:00
|
|
|
schemaDir="@datadir@/glib-2.0/schemas"
|
2010-02-26 00:03:06 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
progName="`basename $0`"
|
2010-05-17 12:03:47 +00:00
|
|
|
localeDir="@localedir@"
|
2010-02-26 00:03:06 +00:00
|
|
|
uiFile="$uiDir/clock-preferences.ui"
|
|
|
|
export GJS_PATH="$jsDir"
|
2010-05-05 21:05:42 +00:00
|
|
|
export GSETTINGS_SCHEMA_DIR="$schemaDir"
|
2010-02-26 00:03:06 +00:00
|
|
|
|
|
|
|
@GJS_CONSOLE@ -c "const ClockPreferences = imports.prefs.clockPreferences;
|
2010-05-17 12:03:47 +00:00
|
|
|
ClockPreferences.main({ progName: '$progName',
|
|
|
|
uiFile: '$uiFile',
|
|
|
|
localeDir: '$localeDir' });"
|