git: dbe2a1855cfd - main - x11/nwg-menu: unbreak reboot/poweroff buttons
Jan Beich
jbeich at FreeBSD.org
Tue Jun 22 01:45:21 UTC 2021
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=dbe2a1855cfd13c4dcc858626127b1eba355ab84
commit dbe2a1855cfd13c4dcc858626127b1eba355ab84
Author: Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-06-22 01:34:47 +0000
Commit: Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-06-22 01:39:10 +0000
x11/nwg-menu: unbreak reboot/poweroff buttons
env vars: []; command: 'systemctl'; args: [-i poweroff]
---
x11/nwg-menu/Makefile | 1 +
x11/nwg-menu/files/patch-main.go | 15 +++++++++++++++
2 files changed, 16 insertions(+)
diff --git a/x11/nwg-menu/Makefile b/x11/nwg-menu/Makefile
index b24264e5aa03..9bee3909a9dd 100644
--- a/x11/nwg-menu/Makefile
+++ b/x11/nwg-menu/Makefile
@@ -1,6 +1,7 @@
PORTNAME= nwg-menu
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.1
+PORTREVISION= 1
CATEGORIES= x11
MAINTAINER= jbeich at FreeBSD.org
diff --git a/x11/nwg-menu/files/patch-main.go b/x11/nwg-menu/files/patch-main.go
new file mode 100644
index 000000000000..72ee9595779e
--- /dev/null
+++ b/x11/nwg-menu/files/patch-main.go
@@ -0,0 +1,15 @@
+- Adapt to BSD-style shutdown
+
+--- main.go.orig 2021-06-19 23:37:36 UTC
++++ main.go
+@@ -119,8 +119,8 @@ var fileManager = flag.String("fm", "thunar", "File Ma
+ var term = flag.String("term", "alacritty", "Terminal emulator")
+ var cmdLock = flag.String("cmd-lock", "swaylock -f -c 000000", "screen lock command")
+ var cmdLogout = flag.String("cmd-logout", "swaymsg exit", "logout command")
+-var cmdRestart = flag.String("cmd-restart", "systemctl reboot", "reboot command")
+-var cmdShutdown = flag.String("cmd-shutdown", "systemctl -i poweroff", "shutdown command")
++var cmdRestart = flag.String("cmd-restart", "shutdown -r now", "reboot command")
++var cmdShutdown = flag.String("cmd-shutdown", "shutdown -p now", "shutdown command")
+
+ func main() {
+ timeStart := time.Now()
More information about the dev-commits-ports-all
mailing list