summaryrefslogtreecommitdiff
path: root/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bbappend
blob: 2b428805b4fd8d388555025d9438db4359fa4873 (plain)
1
2
3
4
5
6
7
8
9
FILESEXTRAPATHS_prepend := "${THISDIR}/xinput-calibrator:"

# menu entry should make the calibration permanent instead of printing cal data into a terminal
do_install_append() {
    install -m 0755 ${D}/${datadir}/applications/xinput_calibrator.desktop ${D}/${datadir}/applications/xinput_calibrator.desktop.old
    sed -i -e 's/xinput_calibrator; cat/rm -f \/etc\/pointercal.xinput; xinput_calibrator_once.sh/' ${D}/${datadir}/applications/xinput_calibrator.desktop
    sed -i -e 's/Terminal\=true/Terminal=false/' ${D}/${datadir}/applications/xinput_calibrator.desktop
    sed -i -e 's/Terminal\=true/Terminal=false/' ${D}${sysconfdir}/xdg/autostart/xinput_calibrator.desktop
}