$OpenBSD: patch-src_dunst_c,v 1.3 2018/02/23 22:34:18 kn Exp $

Index: src/dunst.c
--- src/dunst.c.orig
+++ src/dunst.c
@@ -12,6 +12,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include <err.h>
+#include <unistd.h>
+
 #include "dbus.h"
 #include "menu.h"
 #include "notification.h"
@@ -147,6 +150,11 @@ int dunst_main(int argc, char *argv[])
         int owner_id = initdbus();
 
         x_setup();
+
+        if (settings.icon_position == icons_off) {
+                if (pledge("stdio rpath proc exec", NULL) == -1)
+                        err(1, "pledge");
+        }
 
         if (settings.startup_notification) {
                 notification *n = notification_create();
