pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

labwc: add start wrapper



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Sat Dec 13 17:34:11 2025 +0100
Changeset:	be86e49f6065c3da685dc623dbc1e9abc6c4013d

Modified Files:
	labwc/Makefile
	labwc/PLIST
Added Files:
	labwc/files/startlabwc.sh

Log Message:
labwc: add start wrapper

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=be86e49f6065c3da685dc623dbc1e9abc6c4013d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 labwc/Makefile            |  5 +++++
 labwc/PLIST               |  1 +
 labwc/files/startlabwc.sh | 12 ++++++++++++
 3 files changed, 18 insertions(+)

diffs:
diff --git a/labwc/Makefile b/labwc/Makefile
index a53acdc355..5c2b9956cf 100644
--- a/labwc/Makefile
+++ b/labwc/Makefile
@@ -29,6 +29,10 @@ DEPENDS+=		nerd-fonts-Hack-[0-9]*:../../fonts/nerd-fonts-Hack
 
 CFLAGS+=	-I${BUILDLINK_PREFIX.libepoll-shim}/include/libepoll-shim
 
+post-install:
+	${INSTALL_SCRIPT} ${FILESDIR}/startlabwc.sh \
+                ${DESTDIR}${PREFIX}/bin/startlabwc
+
 .include "../../devel/meson/build.mk"
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../devel/libepoll-shim/buildlink3.mk"
@@ -42,5 +46,6 @@ CFLAGS+=	-I${BUILDLINK_PREFIX.libepoll-shim}/include/libepoll-shim
 
 .include "../../wip/libsfdo/buildlink3.mk"
 .include "../../wip/wlroots/buildlink3.mk"
+.include "../../wip/seatd/buildlink3.mk"
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/labwc/PLIST b/labwc/PLIST
index 3f2d5e89cb..14c76d2014 100644
--- a/labwc/PLIST
+++ b/labwc/PLIST
@@ -2,6 +2,7 @@
 bin/lab-sensible-terminal
 bin/labnag
 bin/labwc
+bin/startlabwc
 man/man1/labnag.1
 man/man1/labwc.1
 man/man5/labwc-actions.5
diff --git a/labwc/files/startlabwc.sh b/labwc/files/startlabwc.sh
new file mode 100644
index 0000000000..f54c92d5b2
--- /dev/null
+++ b/labwc/files/startlabwc.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -eu
+
+: ${XDG_CURRENT_DESKTOP:=labwc}
+: ${XDG_RUNTIME_DIR:=/tmp/$(id -un)-runtime}
+: ${QT_QPA_PLATFORM:=wayland;xcb}
+
+export XDG_CURRENT_DESKTOP XDG_RUNTIME_DIR QT_QPA_PLATFORM
+
+[ -d "${XDG_RUNTIME_DIR}" ] || mkdir -p -m 700 "${XDG_RUNTIME_DIR}"
+
+exec /usr/pkg/bin/seatd-launch /usr/pkg/bin/labwc "$@"


Home | Main Index | Thread Index | Old Index