Hi. I was using "System settings — Notifications — Screen Saver — Screen locked" notification to execute a custom script, but since some last update it does not work anymore. If I run the script from the console manually, it works, of course. I suppose this should be managed by ksmserver, and I have the configuration in place: === [~]$ cat .config/ksmserver.notifyrc [Event/locked] Action=Execute Execute=/usr/local/bin/lock.sh Logfile= Sound= TTS= === but I have no idea how to debug this in order to gather more information. Could you please give me some hint on this?
The notification shows up for me but indeed a script isn't executed. It looks like the script execution itself is broken. Can you try with another notification and see if that works? Otherwise this is a bug in knotifications.
(In reply to Kai Uwe Broulik from comment #1) > The notification shows up for me but indeed a script isn't executed. It > looks like the script execution itself is broken. Can you try with another > notification and see if that works? Otherwise this is a bug in > knotifications. OK, I've just tried a notification on AC cable unplug: 1) playing a sound works; 2) executing a script doesn't work.
Git commit 2690452736956f73c2348357e5e45b9f643e7f95 by Kai Uwe Broulik. Committed on 23/01/2018 at 13:33. Pushed by broulik into branch 'master'. Fix loading NotifyByExecute Looks like a copy paste error CHANGELOG: The "Run Command" notification action has been fixed Differential Revision: https://phabricator.kde.org/D10026 M +1 -1 src/knotificationmanager.cpp https://commits.kde.org/knotifications/2690452736956f73c2348357e5e45b9f643e7f95
Confirming the fix, many thanks.
*** Bug 390019 has been marked as a duplicate of this bug. ***
*** Bug 390562 has been marked as a duplicate of this bug. ***