-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mako fails to load icons #239
Comments
You need to drop the double-quotes in the config file. See #107. |
That seems to have had no effect. New configuration:
Behavior and logs look the same:
(yes I restarted the unit) |
Actually, are you sure the client sends the icon name and not an absolute path? What's the output of |
Can you add printf debug statements here: https://github.com/emersion/mako/blob/master/dbus/xdg.c#L118 and here: https://github.com/emersion/mako/blob/master/dbus/xdg.c#L242 |
I'm adding the patches in a moment |
Applying this patch diff --git a/dbus/xdg.c b/dbus/xdg.c
index 81e115d..55fe4d0 100644
--- a/dbus/xdg.c
+++ b/dbus/xdg.c
@@ -116,6 +116,7 @@ static int handle_notify(sd_bus_message *msg, void *data,
notif->app_name = strdup(app_name);
notif->app_icon = strdup(app_icon);
+ fprintf(stderr, ">>>> L119:notif-app_icon=%s\n", notif->app_icon);
notif->summary = strdup(summary);
notif->body = strdup(body);
@@ -240,6 +241,7 @@ static int handle_notify(sd_bus_message *msg, void *data,
// will win over app_icon if provided.
free(notif->app_icon);
notif->app_icon = strdup(image_path);
+ fprintf(stderr, ">>>> L244:notif-app_icon=%s\n", notif->app_icon);
} else if (strcmp(hint, "image-data") == 0 ||
strcmp(hint, "image_data") == 0 || // Deprecated.
strcmp(hint, "icon_data") == 0) { // Even more deprecated. |
|
Okay, so this means the app creating the notification provides an absolute path to a non-existent icon. We can't really do anything here, the client needs to be fixed to just send the icon name instead. |
I'm on NixOS, which means the usual paths for things don't exist. In trying to use
mako
with icon support, by configuring it as suchI get the following logs:
Inspecting the paths configured with
icon-path
though, I see the fileDoes mako just give up when it doesn't find
/usr/share/icons/hicolor
or/usr/share/pixmaps
?The text was updated successfully, but these errors were encountered: