diff options
Diffstat (limited to 'meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/b2qt-startup.sh')
-rwxr-xr-x | meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/b2qt-startup.sh | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/b2qt-startup.sh b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/b2qt-startup.sh new file mode 100755 index 0000000..89e4bbb --- /dev/null +++ b/meta-boot2qt/recipes-qt/boot2qt-addons/boot2qt-launcher/b2qt-startup.sh | |||
@@ -0,0 +1,49 @@ | |||
1 | #!/bin/sh | ||
2 | ############################################################################ | ||
3 | ## | ||
4 | ## Copyright (C) 2016 The Qt Company Ltd. | ||
5 | ## Contact: https://www.qt.io/licensing/ | ||
6 | ## | ||
7 | ## This file is part of the Boot to Qt meta layer. | ||
8 | ## | ||
9 | ## $QT_BEGIN_LICENSE:GPL$ | ||
10 | ## Commercial License Usage | ||
11 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
12 | ## accordance with the commercial license agreement provided with the | ||
13 | ## Software or, alternatively, in accordance with the terms contained in | ||
14 | ## a written agreement between you and The Qt Company. For licensing terms | ||
15 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
16 | ## information use the contact form at https://www.qt.io/contact-us. | ||
17 | ## | ||
18 | ## GNU General Public License Usage | ||
19 | ## Alternatively, this file may be used under the terms of the GNU | ||
20 | ## General Public License version 3 or (at your option) any later version | ||
21 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
22 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
23 | ## included in the packaging of this file. Please review the following | ||
24 | ## information to ensure the GNU General Public License requirements will | ||
25 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
26 | ## | ||
27 | ## $QT_END_LICENSE$ | ||
28 | ## | ||
29 | ############################################################################ | ||
30 | |||
31 | case "$1" in | ||
32 | start) | ||
33 | if [ -x /data/user/b2qt ]; then | ||
34 | APP="/data/user/b2qt" | ||
35 | elif [ -x /usr/bin/b2qt ]; then | ||
36 | APP="/usr/bin/b2qt" | ||
37 | else | ||
38 | APP="/usr/bin/qtlauncher --applications-root /data/user/qt" | ||
39 | fi | ||
40 | /usr/bin/appcontroller ${APP} & | ||
41 | ;; | ||
42 | stop) | ||
43 | /usr/bin/appcontroller --stop | ||
44 | ;; | ||
45 | *) | ||
46 | echo "Usage: $0 {start|stop}" | ||
47 | exit 1 | ||
48 | esac | ||
49 | exit 0 | ||