~ories/+junk/digitalsign_ted

« back to all changes in this revision

Viewing changes to digitalsign

  • Committer: olli at olli-ries
  • Date: 2015-07-01 20:15:21 UTC
  • Revision ID: olli@olli-ries.net-20150701201521-qg073thhdy4liv33
wrapper

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh 
 
2
 
 
3
 
 
4
# Sets MIR as the default platform
 
5
export QT_QPA_PLATFORM=ubuntumirclient
 
6
export MIR_SOCKET=/run/mir_socket
 
7
 
 
8
# Sets the normal lib path as well as qt5's lib path
 
9
export LD_LIBRARY_PATH=$SNAPP_APP_PATH/bin/libs:$SNAPP_APP_PATH/bin/libs/qt5/libs:$LD_LIBRARY_PATH
 
10
export LD_LIBRARY_PATH=$SNAPP_APP_PATH/debs/usr/lib/x86_64-linux-gnu/qt5/libs:$LD_LIBRARY_PATH
 
11
export LD_LIBRARY_PATH=$SNAPP_APP_PATH/debs/usr/lib/x86_64-linux-gnu/pulseaudio:$LD_LIBRARY_PATH
 
12
 
 
13
# This is needed for qtchooser to find its config (so it knows where qt is installed)
 
14
export XDG_CONFIG_DIRS=$SNAPP_APP_PATH/bin:$XDG_CONFIG_DIRS
 
15
 
 
16
# Setup so we can use qmlscene
 
17
export PATH=$SNAPP_APP_PATH/bin/libs/qt5/bin:$PATH
 
18
export PATH=$SNAPP_APP_PATH/debs/usr/lib/x86_64-linux-gnu/qt5/bin:$PATH
 
19
 
 
20
# Plugin path for qt
 
21
#export QT_PLUGIN_PATH=$SNAPP_APP_PATH/bin/libs/qt5/plugins
 
22
export QT_PLUGIN_PATH=$SNAPP_APP_PATH/debs/usr/lib/x86_64-linux-gnu/qt5/plugins
 
23
 
 
24
# QML path
 
25
#export QML2_IMPORT_PATH=$SNAPP_APP_PATH/bin/libs/qt5/qml
 
26
export QML2_IMPORT_PATH=$SNAPP_APP_PATH/debs/usr/lib/x86_64-linux-gnu/qt5/qml
 
27
 
 
28
echo "app path: $SNAPP_APP_PATH"
 
29
echo "app path: $SNAP_APP_DATA_PATH"
 
30
echo "app path: $SNAP_APP_USER_DATA_PATH"
 
31
echo "app path: $SNAP_APP_TMPDIR"
 
32
echo "app path: $SNAP_OLD_PWD"
 
33
echo "app path: $SNAP_APP_ARCH"
 
34
 
 
35
qmlscene $SNAP_APP_PATH/digitalsign.qml