diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2016-09-02 12:46:16 +0300 |
---|---|---|
committer | Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com> | 2016-10-03 07:53:55 +0000 |
commit | 300a9420bce2bcf4e0fffe30dae5cb0504e2cadb (patch) | |
tree | 9837f4d1d67950f05eb27cc1098937dd4321da60 /recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service | |
parent | 923819e55b5b130ea514b4066f2d164fd8234e51 (diff) | |
download | meta-boot2qt-300a9420bce2bcf4e0fffe30dae5cb0504e2cadb.tar.gz |
beaglebone: start qtlauncher only after /dev/fb0 exists
Beaglebone creates /dev/fb0 late in the boot process, which causes
Qt applications to crash if started too early. Make systemd notice
fb0 creation and bind application startup to it.
Change-Id: I0207fb64ec981eaeadbe497de5a9bdc941b6e31d
Reviewed-by: Risto Avila <risto.avila@qt.io>
Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service')
-rw-r--r-- | recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service b/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service new file mode 100644 index 0000000..cdf6480 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service | |||
@@ -0,0 +1,11 @@ | |||
1 | [Unit] | ||
2 | Description=B2Qt user application | ||
3 | BindsTo=dev-fb0.device | ||
4 | After=dev-fb0.device | ||
5 | ConditionPathExists=/usr/bin/b2qt | ||
6 | |||
7 | [Service] | ||
8 | ExecStart=-/usr/bin/appcontroller /usr/bin/b2qt | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||