Icon usage requires more pledge analysis, so pledge conditionally.
Prompted by Timo Myyrä (maintainer), input from and ok sthen tb
This commit is contained in:
parent
ccd9441902
commit
34d600d6a1
@ -1,10 +1,11 @@
|
|||||||
# $OpenBSD: Makefile,v 1.3 2017/08/31 20:57:00 sthen Exp $
|
# $OpenBSD: Makefile,v 1.4 2018/02/23 22:16:07 kn Exp $
|
||||||
|
|
||||||
COMMENT= customizable and lightweight notification-daemon
|
COMMENT= customizable and lightweight notification-daemon
|
||||||
|
|
||||||
GH_ACCOUNT = dunst-project
|
GH_ACCOUNT = dunst-project
|
||||||
GH_PROJECT = dunst
|
GH_PROJECT = dunst
|
||||||
GH_TAGNAME = v1.2.0
|
GH_TAGNAME = v1.2.0
|
||||||
|
REVISION = 0
|
||||||
|
|
||||||
CATEGORIES = x11
|
CATEGORIES = x11
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
$OpenBSD: patch-src_dunst_c,v 1.1 2017/08/31 20:57:00 sthen Exp $
|
$OpenBSD: patch-src_dunst_c,v 1.2 2018/02/23 22:16:07 kn Exp $
|
||||||
|
|
||||||
Index: src/dunst.c
|
Index: src/dunst.c
|
||||||
--- src/dunst.c.orig
|
--- src/dunst.c.orig
|
||||||
@ -13,13 +13,15 @@ Index: src/dunst.c
|
|||||||
#include "dbus.h"
|
#include "dbus.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "notification.h"
|
#include "notification.h"
|
||||||
@@ -325,6 +328,9 @@ int dunst_main(int argc, char *argv[])
|
@@ -325,6 +328,11 @@ int dunst_main(int argc, char *argv[])
|
||||||
int owner_id = initdbus();
|
int owner_id = initdbus();
|
||||||
|
|
||||||
x_setup();
|
x_setup();
|
||||||
+
|
+
|
||||||
|
+ if (settings.icon_position == icons_off) {
|
||||||
+ if (pledge("stdio rpath proc exec", NULL) == -1)
|
+ if (pledge("stdio rpath proc exec", NULL) == -1)
|
||||||
+ err(1, "pledge");
|
+ err(1, "pledge");
|
||||||
|
+ }
|
||||||
|
|
||||||
if (settings.startup_notification) {
|
if (settings.startup_notification) {
|
||||||
notification *n = notification_create();
|
notification *n = notification_create();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user