~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to dists/maemo/scummvm.servicewrapper

  • Committer: Bazaar Package Importer
  • Author(s): Moritz Muehlenhoff
  • Date: 2010-05-07 18:57:09 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20100507185709-34v8yycywjrou5o3
Tags: upstream-1.1.1
ImportĀ upstreamĀ versionĀ 1.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# wrapper for proper WM_CLASS name in SDL apps (needed for icon in taskbar)
 
3
#BASEDIR=`dirname $0`
 
4
BASENAME=`basename $0`
 
5
export SDL_VIDEO_X11_WMCLASS=${BASENAME}
 
6
export SCUMMVM_MAEMO_DEVICE=$(awk '/^product/ { print $2;}' /proc/component_version)
 
7
# no exec, we are really not a d-bus service
 
8
# we need to run scummvm with diferent pid so hildon-desktop will kill the wrapper, not scummvm
 
9
[ -x ${0}.bin ] && ${0}.bin "$@"
 
10
# optified binary
 
11
[ -x /opt/scummvm/bin/scummvm ] && /opt/scummvm/bin/scummvm "$@"
 
12