FreeBSD Bugzilla – Attachment 243577 Details for
Bug 272637
x11/sddm: With sddm-0.20.0 plasma shows no power buttons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Resurrect patch for Xsession script lost in the update to sddm-0.20.0
x11-sddm-Fix-missing-power-options-in-plasma-desktop.patch (text/plain), 1.97 KB, created by
Florian Walpen
on 2023-07-24 00:05:42 UTC
(
hide
)
Description:
Resurrect patch for Xsession script lost in the update to sddm-0.20.0
Filename:
MIME Type:
Creator:
Florian Walpen
Created:
2023-07-24 00:05:42 UTC
Size:
1.97 KB
patch
obsolete
>From e9c515b70a03f32d28a7b7a29a7f4ee562984224 Mon Sep 17 00:00:00 2001 >From: Florian Walpen <dev@submerge.ch> >Date: Mon, 24 Jul 2023 01:23:06 +0200 >Subject: [PATCH] x11/sddm: Fix missing power options in plasma desktop. > >Resurrect a patch lost in the update to sddm-0.20.0, which makes >the Xsession script explicitly start a dbus-run-session. >This fixes missing power options like sleep, reboot and shutdown >in X11 plasma desktop sessions started through sddm. > >PR: 272637 >--- > x11/sddm/Makefile | 1 + > x11/sddm/files/patch-data_scripts_Xsession | 19 +++++++++++++++++++ > 2 files changed, 20 insertions(+) > create mode 100644 x11/sddm/files/patch-data_scripts_Xsession > >diff --git a/x11/sddm/Makefile b/x11/sddm/Makefile >index 553e9c4288b5..e089b38ed8e0 100644 >--- a/x11/sddm/Makefile >+++ b/x11/sddm/Makefile >@@ -1,6 +1,7 @@ > PORTNAME= sddm > PORTVERSION= 0.20.0 > DISTVERSIONPREFIX= v >+PORTREVISION= 1 > CATEGORIES= x11 > > MAINTAINER= kde@FreeBSD.org >diff --git a/x11/sddm/files/patch-data_scripts_Xsession b/x11/sddm/files/patch-data_scripts_Xsession >new file mode 100644 >index 000000000000..1cde066065fb >--- /dev/null >+++ b/x11/sddm/files/patch-data_scripts_Xsession >@@ -0,0 +1,19 @@ >+Fix use of "$@" (see sh(1)). >+ >+There's no systemd on FreeBSD so start the session using $STARTUP which is >+defined in 90-consolekit if ConsoleKit2 is installed. By default this allows >+local users to shutdown/reboot the machine and access devices like USB keys. >+ >+Also use dbus-run-session so libdbus doesn't have to autolauch the session bus >+daemon on first use. Autolaunched dbus daemons tend to linger and may only >+exit if the X server exits. >+ >+--- data/scripts/Xsession.orig 2019-03-13 09:22:35 UTC >++++ data/scripts/Xsession >+@@ -98,5 +98,5 @@ fi >+ if [ -z "$*" ]; then >+ exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session." >+ else >+- exec $@ >++ exec $STARTUP /usr/bin/dbus-run-session --dbus-daemon=/usr/bin/dbus-daemon -- "$@" >+ fi >-- >2.41.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
Flags:
dev
:
maintainer-approval-
Actions:
View
|
Diff
Attachments on
bug 272637
:
243573
|
243574
| 243577