Skip to content
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

Blacklist unwanted applications in settings #24

Closed
khvMX opened this issue Feb 26, 2015 · 0 comments · Fixed by #26
Closed

Blacklist unwanted applications in settings #24

khvMX opened this issue Feb 26, 2015 · 0 comments · Fixed by #26

Comments

@khvMX
Copy link

khvMX commented Feb 26, 2015

Would be a killer-feature! I've seen that most of the issues can actually be solved by users if there was an option to block the notifications from unwanted applications. Some GUI element representing the list with "add", "modify", and "remove" buttons in the extension settings would suffice.
I believe it's feasible due to this quote from bergschreck:

Best notification extension. I tried 2 others, but they didn't work with evolution mail. This one notifies everything, a little bit too much. ;-) But it is easy to blacklist unwanted applications in source code. To blacklist iceweasel and owncloud, I changed function _hasNotifications the following way: this._hasNotifications = function(source) { var title=source.title.toLowerCase(); if (title == 'iceweasel' || title == 'owncloud') return false; if (source._counterBin.visible && source._counterLabel.get_text() != '0') { return true; } for (let n = 0; n < source.notifications.length; n++) { if (!source.notifications[n].resident) { // Do not alert resident notifications (like Rhythmbox ones) return true; } } return false; }

ilgarmehmetali added a commit to ilgarmehmetali/gnome-shell-notifications-alert that referenced this issue May 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants