aboutsummaryrefslogtreecommitdiff
path: root/dists/maemo/scummvm.servicewrapper
diff options
context:
space:
mode:
authorFrantisek Dufka2010-03-24 19:56:16 +0000
committerFrantisek Dufka2010-03-24 19:56:16 +0000
commit03ba4a33185198c08dc84c3888170797b1e7c7ce (patch)
tree1d9fe65cecbaea6679a0ea36adeaa7c2eb367c7d /dists/maemo/scummvm.servicewrapper
parent837b7d096e257d3f4b7539f801614f7159c4525a (diff)
downloadscummvm-rg350-03ba4a33185198c08dc84c3888170797b1e7c7ce.tar.gz
scummvm-rg350-03ba4a33185198c08dc84c3888170797b1e7c7ce.tar.bz2
scummvm-rg350-03ba4a33185198c08dc84c3888170797b1e7c7ce.zip
added desktop and service items for launching
svn-id: r48386
Diffstat (limited to 'dists/maemo/scummvm.servicewrapper')
-rw-r--r--dists/maemo/scummvm.servicewrapper12
1 files changed, 12 insertions, 0 deletions
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 "$@"
+