Bug 481751

Summary: "Run command" doesn't work
Product: [Frameworks and Libraries] frameworks-knotifyconfig Reporter: Andreas Schneider <asn>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED NOT A BUG    
Severity: normal CC: fanzhuyifan, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 5.115.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andreas Schneider 2024-02-24 08:28:44 UTC
SUMMARY
I'm trying to set up a notification command for an calendar alarm as Speech doesn't work. So I set

"Run command" to "/usr/bin/spd-say -l de "Terminerinnerung: %e"

However, I never get any speech output. If I run the command on the command line it works just fine.

STEPS TO REPRODUCE
1. Go to System Settings -> Notifications
2. Got to Application-specific Settings
3. Select Calender Reminders
4. Klick on Configure Events...
5. Set "Run command" to "/usr/bin/spd-say -l de "Terminerinnerung: %e"

OBSERVED RESULT
Silence

EXPECTED RESULT
There should be voice ouptut from speech-dispatcher

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Comment 1 fanzhuyifan 2024-02-24 16:40:40 UTC
This has been removed in plasma 6.

https://invent.kde.org/frameworks/knotifications/-/merge_requests/92

See also https://bugs.kde.org/show_bug.cgi?id=481069
Comment 2 Andreas Schneider 2024-02-24 20:07:40 UTC
This is really bad :-(

I finally got it working after some debugging. LC_ALL was not set, so spd-say didn't work as it couldn't set the locale. I will comment on the bug you linked that I use this.