diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2013-03-08 17:51:34 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2013-09-22 11:00:11 +0200 |
commit | 2cb50cca15ee20bd2dcc3d93feb59deccd90c290 (patch) | |
tree | c23fb2f5c5f35a442986ae885f46212f3673ed91 /recipes-graphics/xinput-calibrator | |
parent | be622a4b899f0612ee16e1eaf71557e4c0dcf51b (diff) |
xinput-calibrator: menuentry behaves as the first boot calibration
- make the menuentry behave as the one time calibration on first boot
Diffstat (limited to 'recipes-graphics/xinput-calibrator')
-rw-r--r-- | recipes-graphics/xinput-calibrator/xinput-calibrator_git.bbappend | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bbappend b/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bbappend index e12abec..2d5a610 100644 --- a/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bbappend +++ b/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bbappend @@ -1,6 +1,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -PRINC := "${@int(PRINC) + 1}" +PRINC := "${@int(PRINC) + 2}" inherit systemd @@ -8,3 +8,9 @@ SRC_URI += "file://xinput-calibrator.service" SYSTEMD_PACKAGES = "${PN}-systemd" SYSTEMD_SERVICE = "${PN}.service" + +# menu entry should make the calibration permanent instead of printing cal data into a terminal +do_install_append() { + install -m 0755 ${D}/usr/share/applications/xinput_calibrator.desktop ${D}/usr/share/applications/xinput_calibrator.desktop.old + sed -i -e 's/xinput_calibrator; cat/rm -f \/etc\/pointercal.xinput; xinput_calibrator_once.sh/' ${D}/usr/share/applications/xinput_calibrator.desktop +}
\ No newline at end of file |