From d7492936cf7ee78d28274789bdc6a36cc5874dd0 Mon Sep 17 00:00:00 2001 From: Joerg Bornkessel Date: Tue, 7 Jan 2020 23:50:02 +0100 Subject: added support for the DISPLAY=:0.0 environment variable needed for media-plugins/vdr-softhddevice supporting OpenGlOSD Suggested-by: Lucian Muresan Signed-off-by: Joerg Bornkessel --- ChangeLog | 5 ++++- etc/conf.d/vdr | 6 ++++++ usr/share/vdr/systemd/vdr-systemd_helper.sh | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a51178a..6052331 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,9 +3,12 @@ - removed rtc-wakeup, anounced in privius version Suggested-by: Lucian Muresan - fixed path to functions.sh - rather depend on sys-apps/gentoo-functions than relaying on the + rather depend on sys-apps/gentoo-functions than relaying on the existence of openrc Suggested-by: Lucian Muresan + - added support for the DISPLAY=:0.0 environment variable + (needed for media-plugins/vdr-softhddevice supporting OpenGL OSD) + Suggested-by: Lucian Muresan *gentoo-vdr-scripts-2.8 (15 Dec 2019) diff --git a/etc/conf.d/vdr b/etc/conf.d/vdr index 0067f18..eae6459 100644 --- a/etc/conf.d/vdr +++ b/etc/conf.d/vdr @@ -146,6 +146,12 @@ LOG="3" # default: ':0 -br -nocursor -nolisten tcp -quiet' #X11_SERVER=" " +# X11 display +# (needed for media-plugin/vdr-softhddevice supporting OpenGL OSD) +# please make sure to set it matching the X11_SERVER contents above +# and let it on, always !!! +DISPLAY=:0.0 + ########################################################### # Expert Settings # ########################################################### diff --git a/usr/share/vdr/systemd/vdr-systemd_helper.sh b/usr/share/vdr/systemd/vdr-systemd_helper.sh index 5ec6495..f240c35 100644 --- a/usr/share/vdr/systemd/vdr-systemd_helper.sh +++ b/usr/share/vdr/systemd/vdr-systemd_helper.sh @@ -94,6 +94,10 @@ if [ "$1" = "--start-pre" ]; then # these options are what we need to start VDR from the systemd unit file echo "VDR_OPTS=\"${vdr_opts}\"" > ${SYSTEMD_ENV_FILE} + # X11 DISPLAY + # (needed for media-plugins/vdr-softhddevice supporting OpenGL OSD) + echo "DISPLAY=$DISPLAY" >> ${SYSTEMD_ENV_FILE} + # LANG LC_COLLATE from /etc/conf.d/vdr will be ignored, wrt bug 530690 echo "LANG=$LANG" >> ${SYSTEMD_ENV_FILE} echo "LC_COLLATE=${VDR_SORT_ORDER}" >> ${SYSTEMD_ENV_FILE} -- cgit v1.2.3-65-gdbad