From 03ba4a33185198c08dc84c3888170797b1e7c7ce Mon Sep 17 00:00:00 2001 From: Frantisek Dufka Date: Wed, 24 Mar 2010 19:56:16 +0000 Subject: added desktop and service items for launching svn-id: r48386 --- dists/maemo/scummvm.service | 3 +++ dists/maemo/scummvm.servicedesktop | 13 +++++++++++++ dists/maemo/scummvm.servicewrapper | 12 ++++++++++++ dists/maemo/scummvm.wrapper | 4 +++- 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 dists/maemo/scummvm.service create mode 100644 dists/maemo/scummvm.servicedesktop create mode 100644 dists/maemo/scummvm.servicewrapper (limited to 'dists/maemo') diff --git a/dists/maemo/scummvm.service b/dists/maemo/scummvm.service new file mode 100644 index 0000000000..c11d071167 --- /dev/null +++ b/dists/maemo/scummvm.service @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=com.nokia.scummvm +Exec=/usr/games/scummvm diff --git a/dists/maemo/scummvm.servicedesktop b/dists/maemo/scummvm.servicedesktop new file mode 100644 index 0000000000..b51eb50211 --- /dev/null +++ b/dists/maemo/scummvm.servicedesktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Name=ScummVM +Exec=/usr/games/scummvm +Icon=scummvm +X-Icon-path=/usr/share/icons +X-Window-Icon=scummvm +X-HildonDesk-ShowInToolbar=true +X-Osso-Type=application/x-executable +X-Osso-Service=scummvm +StartupWMClass=scummvm diff --git a/dists/maemo/scummvm.servicewrapper b/dists/maemo/scummvm.servicewrapper new file mode 100644 index 0000000000..04909d03f9 --- /dev/null +++ b/dists/maemo/scummvm.servicewrapper @@ -0,0 +1,12 @@ +#!/bin/sh +# wrapper for proper WM_CLASS name in SDL apps (needed for icon in taskbar) +#BASEDIR=`dirname $0` +BASENAME=`basename $0` +export SDL_VIDEO_X11_WMCLASS=${BASENAME} +export SCUMMVM_MAEMO_DEVICE=$(awk '/^product/ { print $2;}' /proc/component_version) +# no exec, we are really not a d-bus service +# we need to run scummvm with diferent pid so hildon-desktop will kill the wrapper, not scummvm +[ -x ${0}.bin ] && ${0}.bin "$@" +# optified binary +[ -x /opt/scummvm/bin/scummvm ] && /opt/scummvm/bin/scummvm "$@" + diff --git a/dists/maemo/scummvm.wrapper b/dists/maemo/scummvm.wrapper index 56329def21..37859d7ee6 100644 --- a/dists/maemo/scummvm.wrapper +++ b/dists/maemo/scummvm.wrapper @@ -4,4 +4,6 @@ BASENAME=`basename $0` export SDL_VIDEO_X11_WMCLASS=${BASENAME} export SCUMMVM_MAEMO_DEVICE=$(awk '/^product/ { print $2;}' /proc/component_version) -exec ${0}.bin "$@" +[ -x ${0}.bin ] && exec ${0}.bin "$@" +# optified binary +[ -x /opt/scummvm/bin/scummvm ] && exec /opt/scummvm/bin/scummvm "$@" -- cgit v1.2.3