summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-12-23 19:32:11 +0200
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-12-24 14:28:46 +0200
commit7dd6b7d55b9ca9e5c666e58fafc36b21b45f7a1e (patch)
tree35a7fe2911365013b640770b64d27459ba666557
parent09dac9171391c90a6cfa0ae8c9ce4029a130b7e6 (diff)
xinput-calibrator: Fix double autostart
xinput-calibrator runs twice: - as an X-session script (/etc/X11/Xsession.d/30xinput_calibrate.sh) - as autorunned desktop item (/etc/xdg/autostart/xinput_calibrator.desktop) Sometimes it breaks displaying other auto-run desktop applications. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--recipes-graphics/xinput-calibrator/xinput-calibrator_%.bbappend6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-graphics/xinput-calibrator/xinput-calibrator_%.bbappend b/recipes-graphics/xinput-calibrator/xinput-calibrator_%.bbappend
new file mode 100644
index 0000000..723b2b6
--- /dev/null
+++ b/recipes-graphics/xinput-calibrator/xinput-calibrator_%.bbappend
@@ -0,0 +1,6 @@
+# Prevent running xinput_calibrator twice
+do_install_append() {
+ # Remove the xinput_calibrator.desktop from /etc/xdg/autostart
+ rm -f ${D}${sysconfdir}/xdg/autostart/xinput_calibrator.desktop
+}
+