FreeBSD Bugzilla – Attachment 228126 Details for
Bug 258664
sysutils/seatd: add pkg-message
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1.1
0001-sysutils-seatd-add-pkg-message.patch (text/plain), 2.62 KB, created by
Evgenii Khramtsov
on 2021-09-22 18:26:51 UTC
(
hide
)
Description:
v1.1
Filename:
MIME Type:
Creator:
Evgenii Khramtsov
Created:
2021-09-22 18:26:51 UTC
Size:
2.62 KB
patch
obsolete
>From 0bccb427d3085327f468d4381dc3dd0921452b5b Mon Sep 17 00:00:00 2001 >From: Evgeniy Khramtsov <evgeniy@khramtsov.org> >Date: Tue, 21 Sep 2021 20:46:40 +0300 >Subject: [PATCH] sysutils/seatd: add pkg-message > >Add post-install pkg-message on how to use seatd. > >PR: ? >Approved by: ? >--- > sysutils/seatd/Makefile | 1 + > sysutils/seatd/pkg-message | 34 +++++++++++++++++++++ > x11/dmenu-wayland/files/patch-dmenu__path.c | 14 +++++++++ > 3 files changed, 49 insertions(+) > create mode 100644 sysutils/seatd/pkg-message > create mode 100644 x11/dmenu-wayland/files/patch-dmenu__path.c > >diff --git a/sysutils/seatd/Makefile b/sysutils/seatd/Makefile >index d80ab69175d6..2ac9a8ae4716 100644 >--- a/sysutils/seatd/Makefile >+++ b/sysutils/seatd/Makefile >@@ -1,5 +1,6 @@ > PORTNAME= seatd > DISTVERSION= 0.6.2 >+PORTREVISION= 1 > CATEGORIES= sysutils > MASTER_SITES= https://git.sr.ht/~kennylevinsen/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/ > >diff --git a/sysutils/seatd/pkg-message b/sysutils/seatd/pkg-message >new file mode 100644 >index 000000000000..28c1572d45f9 >--- /dev/null >+++ b/sysutils/seatd/pkg-message >@@ -0,0 +1,34 @@ >+[ >+{ type: install >+ message: <<EOM >+If LIBSEAT_BACKEND is set, the specified backend is used. >+Otherwise, the first successful backend will be used. >+Available backends are: seatd, consolekit2. >+ >+The default "seatd" backend requires user to have "video" >+group set, if not then add the user to "video" and relog: >+ >+# pw groupmod video -m user >+ >+Wlroots based Wayland compositors (e.g. x11-wm/sway) >+can be launched via seatd-launch(1) dedicated server instance: >+ >+$ seatd-launch sway >+ >+Alternatively, daemon server can be used: >+# service seatd onestart >+# sysrc seatd_enable="YES" >+$ sway >+ >+seatd-launch(1) drops {G,U}ID of instance from >+root to user's, compared to daemon launched via rc(8). >+ >+Experimental consolekit2 backend can also be used: >+ >+# pkg install consolekit2 >+# service dbus onestart >+# sysrc dbus_enable="YES" >+$ ck-launch-session sway >+EOM >+} >+] >diff --git a/x11/dmenu-wayland/files/patch-dmenu__path.c b/x11/dmenu-wayland/files/patch-dmenu__path.c >new file mode 100644 >index 000000000000..c1d95bb1259b >--- /dev/null >+++ b/x11/dmenu-wayland/files/patch-dmenu__path.c >@@ -0,0 +1,14 @@ >+--- dmenu_path.c.orig 2019-06-25 12:55:46 UTC >++++ dmenu_path.c >+@@ -19,8 +19,9 @@ static const char *home, *path; >+ >+ int >+ main(void) { >+- if(!(home = getenv("HOME"))) >+- die("no $HOME"); >++ if(!(home = getenv("XDG_CACHE_HOME"))) >++ if(!(home = getenv("HOME"))) >++ die("no $XDG_CACHE_HOME or $HOME"); >+ if(!(path = getenv("PATH"))) >+ die("no $PATH"); >+ if(chdir(home) < 0) >-- >2.32.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 258664
:
228098
|
228126
|
228127