Skip to contentSkip to conversation

weston-init: remove old qol patches

PATCH New [email protected] 1 participant 1 message Apr 12, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston-init: remove old qol patches

From: Randolph Sapp <[email protected]>

This reverts commit eab6e84b752b0341d1c1627527c99fa68c90bb52.

The changes introduced in this commit were accepted into oe-core and are no longer required here.

---
 .../wayland/weston-init.bbappend              |  8 --
 .../wayland/weston-init/weston-socket.sh      | 20 -----
 .../wayland/weston-init/weston.ini            | 73 +------------------
 3 files changed, 4 insertions(+), 97 deletions(-)
 delete mode 100755 meta-arago-distro/recipes-graphics/wayland/weston-init/weston-socket.sh
meta-arago-distro/recipes-graphics/wayland/weston-init.bbappend +0 -8
index be6b534b..4d5db58c 100644
@@ -5,18 +5,10 @@ PR:append = ".arago12"
 SRC_URI:append = " \
     file://weston.ini \
     file://weston-launch-calibrator.sh \
-    file://weston-socket.sh \
 "
 
 do_install:append() {
     install -Dm755 weston-launch-calibrator.sh ${D}/${bindir}/weston-launch-calibrator
-
-    if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
-        install -D -p -m0644 ${WORKDIR}/weston-socket.sh ${D}${sysconfdir}/profile.d/weston-socket.sh
-    fi
 }
 
 FILES:${PN}:append = "${bindir}/weston-launch-calibrator"
-
-GROUPADD_PARAM:${PN} = "-r wayland; -r render"
-USERADD_PARAM:${PN} = "--home /home/weston --shell /bin/sh --user-group -G video,input,render weston"
meta-arago-distro/recipes-graphics/wayland/weston-init/weston-socket.sh deleted +0 -20
deleted file mode 100755
index 86389d63..00000000
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-# set weston variables for use with global weston socket
-global_socket="/run/wayland-0"
-if [ -e "$global_socket" ]; then
-	weston_group=$(stat -c "%G" "$global_socket")
-	if [ "$(id -u)" = "0" ]; then
-		export WAYLAND_DISPLAY="$global_socket"
-	else
-		case "$(groups "$USER")" in
-			*"$weston_group"*)
-				export WAYLAND_DISPLAY="$global_socket"
-				;;
-			*)
-				;;
-		esac
-	fi
-	unset weston_group
-fi
-unset global_socket
meta-arago-distro/recipes-graphics/wayland/weston-init/weston.ini +4 -69

88 lines not on this page · raw message

Signature · 1 line
2.44.0