Skip to content

Commit 07528f4

Browse files
committed
Fix dbus signal config_reloaded
1 parent a0dbc00 commit 07528f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dbus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ static void dbus_cb_dunst_NotificationListHistory(GDBusConnection *connection,
385385
icon_path = (n->icon_path == NULL) ? "" : n->icon_path;
386386
urgency = notification_urgency_to_string(n->urgency);
387387
urls = (n->urls == NULL) ? "" : n->urls;
388-
stack_tag = (n->stack_tag == NULL) ? "" : n->stack_tag;
388+
stack_tag = (n->stack_tag == NULL) ? "" : n->stack_tag;
389389

390390
g_variant_builder_add(&n_builder, "{sv}", "body", g_variant_new_string(body));
391391
g_variant_builder_add(&n_builder, "{sv}", "message", g_variant_new_string(msg));
@@ -1489,7 +1489,7 @@ void signal_config_reloaded(char **const configs)
14891489
LOG_E("Unable to send signal: No DBus connection.");
14901490
}
14911491

1492-
GVariant *body = g_variant_new("(as)", configs);
1492+
GVariant *body = g_variant_new("(^as)", configs);
14931493
GError *err = NULL;
14941494

14951495
g_dbus_connection_emit_signal(dbus_conn,

src/log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
// unified fopen() result messages
4646
#define MSG_FOPEN_SUCCESS(path, fp) "Opened '%s' (fd: '%d')", path, fileno(fp)
47-
#define MSG_FOPEN_FAILURE(path) "Cannot open '%s': '%s'", path, strerror(errno)
47+
#define MSG_FOPEN_FAILURE(path) "Cannot open '%s': %s", path, strerror(errno)
4848

4949
/**
5050
* Set the current loglevel to `level`

0 commit comments

Comments
 (0)