summaryrefslogtreecommitdiff
path: root/src/appMain/start-qml.sh
blob: 1665b2689d5545ec08c304ebaa7eba6aac28a0ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

#
# This script start qml on QNX
#

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib:
QWS_DISPLAY=qnx
QWS_MOUSE_PROTO=qnx
QWS_KEYBOARD=qnx
export QWS_DISPLAY QWS_MOUSE_PROTO QWS_KEYBOARD

if [ ` pidin | grep devi-hid | wc -l` -eq 0 ]
then
  slay -f devi-hid
fi

filename=$1
pluginpath=$2

if [ -z "$filename" ]
then
  echo "Usage: start-qml.sh <filename> [<pluginpath>]"
  exit 1
fi
if [ -n "$pluginpath" ]
then
  path="-I $pluginpath"
fi

/usr/photon/bin/devi-hid -Pr kbd mouse
qmlviewer -fullscreen -stayontop -qws $filename $path
slay devi-hid