Bug 481751 - "Run command" doesn't work
Summary: "Run command" doesn't work
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-knotifyconfig
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.115.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-24 08:28 UTC by Andreas Schneider
Modified: 2024-02-24 20:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.