From 7fff1d13c1055afedefa6695d8a6cb4f5a024c3e Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Wed, 23 Jan 2019 17:22:41 +0100 Subject: [PATCH] Add docs for desktop-entry filter --- docs/dunst.pod | 8 +++++++- dunstrc | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/dunst.pod b/docs/dunst.pod index a11bbe5..135ac55 100644 --- a/docs/dunst.pod +++ b/docs/dunst.pod @@ -614,12 +614,14 @@ Notifications can be matched for any of the following attributes: =over 4 -=item C +=item C (discouraged, see desktop_entry) =item C =item C +=item C + =item C =item C @@ -633,6 +635,10 @@ Notifications can be matched for any of the following attributes: C is the urgency of the notification, it is named so to not conflict with trying to modify the urgency. +Instead of the appname filter, it's recommended to use the desktop_entry filter. +GLib based applications export their desktop-entry name. In comparison to the appname, +the desktop-entry won't get localized. + To define a matching rule simply assign the specified value to the value that should be matched, for example: diff --git a/dunstrc b/dunstrc index 2a2a772..8da67c3 100644 --- a/dunstrc +++ b/dunstrc @@ -299,9 +299,10 @@ # override settings for certain messages. # # Messages can be matched by -# appname +# appname (discouraged, see desktop_entry) # body # category +# desktop_entry # icon # msg_urgency # stack_tag @@ -320,6 +321,10 @@ # # Shell-like globbing will get expanded. # +# Instead of the appname filter, it's recommended to use the desktop_entry filter. +# GLib based applications export their desktop-entry name. In comparison to the appname, +# the desktop-entry won't get localized. +# # SCRIPTING # You can specify a script that gets run when the rule matches by # setting the "script" option.