xserver-nodm-init: option to remove cursor
Add a PACKAGECONFIG option to allow the user to disable the mouse cursor/pointer in the X server. This might be useful where a touchscreen is used. (From OE-Core rev: 680940250c9a1c7b43229c5e4f4fed5cc3e31033) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
d9f2938921
commit
1e3f04f86a
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
XSERVER=/usr/bin/Xorg
|
XSERVER=/usr/bin/Xorg
|
||||||
DISPLAY=:0
|
DISPLAY=:0
|
||||||
ARGS=" -br -pn @BLANK_ARGS@ "
|
ARGS=" -br -pn @BLANK_ARGS@ @NO_CURSOR_ARG@ "
|
||||||
HOME=@HOME@
|
HOME=@HOME@
|
||||||
USER=@USER@
|
USER=@USER@
|
||||||
|
|
|
@ -24,6 +24,7 @@ REQUIRED_DISTRO_FEATURES = "x11"
|
||||||
PACKAGECONFIG ??= "blank"
|
PACKAGECONFIG ??= "blank"
|
||||||
# dpms and screen saver will be on only if 'blank' is in PACKAGECONFIG
|
# dpms and screen saver will be on only if 'blank' is in PACKAGECONFIG
|
||||||
PACKAGECONFIG[blank] = ""
|
PACKAGECONFIG[blank] = ""
|
||||||
|
PACKAGECONFIG[nocursor] = ""
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}${sysconfdir}/default
|
install -d ${D}${sysconfdir}/default
|
||||||
|
@ -35,6 +36,7 @@ do_install() {
|
||||||
install X11/Xsession ${D}${sysconfdir}/X11/
|
install X11/Xsession ${D}${sysconfdir}/X11/
|
||||||
|
|
||||||
BLANK_ARGS="${@bb.utils.contains('PACKAGECONFIG', 'blank', '', '-s 0 -dpms', d)}"
|
BLANK_ARGS="${@bb.utils.contains('PACKAGECONFIG', 'blank', '', '-s 0 -dpms', d)}"
|
||||||
|
NO_CURSOR_ARG="${@bb.utils.contains('PACKAGECONFIG', 'nocursor', '-nocursor', '', d)}"
|
||||||
if [ "${ROOTLESS_X}" = "1" ] ; then
|
if [ "${ROOTLESS_X}" = "1" ] ; then
|
||||||
XUSER_HOME="/home/xuser"
|
XUSER_HOME="/home/xuser"
|
||||||
XUSER="xuser"
|
XUSER="xuser"
|
||||||
|
@ -44,6 +46,7 @@ do_install() {
|
||||||
fi
|
fi
|
||||||
sed -i "s:@HOME@:${XUSER_HOME}:; s:@USER@:${XUSER}:; s:@BLANK_ARGS@:${BLANK_ARGS}:" \
|
sed -i "s:@HOME@:${XUSER_HOME}:; s:@USER@:${XUSER}:; s:@BLANK_ARGS@:${BLANK_ARGS}:" \
|
||||||
${D}${sysconfdir}/default/xserver-nodm
|
${D}${sysconfdir}/default/xserver-nodm
|
||||||
|
sed -i "s:@NO_CURSOR_ARG@:${NO_CURSOR_ARG}:" ${D}${sysconfdir}/default/xserver-nodm
|
||||||
|
|
||||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||||
install -d ${D}${systemd_unitdir}/system
|
install -d ${D}${systemd_unitdir}/system
|
||||||
|
|
Loading…
Reference in New Issue