Where is the blacklist?
As far as I understood it, there is an easy blacklist filter by application name implemented. However, I couldn't find any trace of it. There's no settings GUI and the dconf entry only contains two options, hide-indicator and max-items. Where can I blacklist applications?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- 2013-11-04
- Last reply:
- 2014-01-13
Jason Conti (jconti) said : | #1 |
Nope, there isn't a blacklist implemented in the indicator. The panel applet supports filtering by appname (and actually more general regular expressions but that isn't exposed). In the panel applet this occurs in the dbus message filter, which in the indicator is in dbus-spy.c. It basically just looks at the notification and discards if it matches the filter instead of sending the signal.
On the other hand there is some filtering on the other side of the callback. Before adding the notification to the menu in message_received_cb in indicator-
Donarsson (benjamin-schwarz) said : | #2 |
Filtering by appname is what I want to do. I don't want the notifications from NetworkManager in the notification center.
So, if I understand this correctly, I have to add the application names in the source code and compile it?
Jason Conti (jconti) said : | #3 |
Yes, you'd have to modify it somehow. Easiest would be a simple gstrcmp0 in the message callback, slightly nicer would be to add a gsettings key with a list of strings, load those into a hash table on startup and test the appname for membership.
Jason Conti (jconti) said : | #4 |
I added support for the application name blacklist to the latest saucy package, you can see the usage in this question: https:/
Can you help with this problem?
Provide an answer of your own, or ask Donarsson for more information if necessary.