[maemo-commits] [maemo-commits] r9865 - projects/haf/branches/maemo-af-desktop/hildon-desktop/data
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Feb 14 17:18:35 EET 2007
- Previous message: [maemo-commits] r9864 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . data debian
- Next message: [maemo-commits] r9866 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildondesktop libhildonwm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: jobi Date: 2007-02-14 17:18:34 +0200 (Wed, 14 Feb 2007) New Revision: 9865 Added: projects/haf/branches/maemo-af-desktop/hildon-desktop/data/hildon-desktop.sh Log: Forgot the script. Can't seem to make any commit right these days Added: projects/haf/branches/maemo-af-desktop/hildon-desktop/data/hildon-desktop.sh =================================================================== --- projects/haf/branches/maemo-af-desktop/hildon-desktop/data/hildon-desktop.sh 2007-02-14 15:14:48 UTC (rev 9864) +++ projects/haf/branches/maemo-af-desktop/hildon-desktop/data/hildon-desktop.sh 2007-02-14 15:18:34 UTC (rev 9865) @@ -0,0 +1,52 @@ +#!/bin/sh + + +PREFIX=/usr +CURRENT_THEME_FILE=$HOME/.osso/current-gtk-theme +CURRENT_MAEMO_THEME_FILE=$HOME/.osso/current-gtk-theme.maemo_af_desktop +CURRENT_THEME=$(cat $CURRENT_THEME_FILE | sed -e "s/include\ \"\/usr\/share\/themes\///" -e 's/\/gtk\-2\.0\/gtkrc\"//' | tr -d " ") + +if [ ! -f $CURRENT_MAEMO_THEME_FILE ]; then + echo "include \"$PREFIX/share/themes/$CURRENT_THEME/gtk-2.0/gtkrc.maemo_af_desktop\"" \ > $CURRENT_MAEMO_THEME_FILE +fi + + + +if [ "x$AF_PIDDIR" = "x" ]; then + echo "$0: Error, AF_PIDDIR is not defined" + exit 2 +fi +if [ ! -w $AF_PIDDIR ]; then + echo "$0: Error, directory $AF_PIDDIR is not writable" + exit 2 +fi + +PROG=/usr/bin/hildon-desktop +SVC="Hildon Desktop" + +case "$1" in +start) START=TRUE + ;; +stop) START=FALSE + ;; +*) echo "Usage: $0 {start|stop}" + exit 1 + ;; +esac + +if [ $START = TRUE ]; then + # check that required environment is defined + if [ "x$DISPLAY" = "x" ]; then + echo "$0: Error, DISPLAY is not defined" + exit 2 + fi + + if [ "x$HOME" = "x" ]; then + echo "$0: Error, HOME is not defined" + exit 2 + fi + + $LAUNCHWRAPPER_NICE_TRYRESTART start "$SVC" $PROG +else + $LAUNCHWRAPPER_NICE_TRYRESTART stop "$SVC" $PROG +fi Property changes on: projects/haf/branches/maemo-af-desktop/hildon-desktop/data/hildon-desktop.sh ___________________________________________________________________ Name: svn:executable + *
- Previous message: [maemo-commits] r9864 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . data debian
- Next message: [maemo-commits] r9866 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildondesktop libhildonwm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]