https://bugs.kde.org/show_bug.cgi?id=481068
Bug ID: 481068
Summary: The power to run a command upon a notification is
severely limited by lack of information
Classification: Frameworks and Libraries
Product: frameworks-knotifications
Version: 5.103.0
Platform: openSUSE
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
SUMMARY
While it is possible to trigger a command execution for specific event types,
these commands do not have all available information from the triggering
notification event, severely limiting the possibility of the programmatic
response and thus the use-cases (of course the content of a specific
notification is controlled by some other piece of SW – but it is a serious flaw
of the notification system to not convey all available information!)
Consider providing all information by actually providing the title of the
notification – %t is not set currently!
Alternatively or additionally consider to provide all information in a
structured format (name=value / JSON / XML) on
STDIN of the executed command or as an environment variable (there several
formats could be provided in different variables).
STEPS TO REPRODUCE
1. edit in system settings a notification type to contain a command
2. verify the data provided to it (see
https://invent.kde.org/frameworks/knotifications/-/blob/kf5/src/notifybyexecute.cpp?ref_type=heads)
and the discussion in response to comment 2 of
(https://bugs.kde.org/show_bug.cgi?id=481024)
OBSERVED RESULT
Insufficient information of the triggering notification is available to the
command.
EXPECTED RESULT
All information pertaining to the triggering notification should be available
to the command to allow optimal programmatic response.
SOFTWARE/OS VERSIONS
SOFTWARE/OS VERSIONS
[copied from System Information]
Operating System: openSUSE Leap 15.5
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.14.21-150500.55.44-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-10210U CPU @ 1.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
ADDITIONAL INFORMATION
As a seasoned computer engineer I might help with changes if brought up to
speed …
--
You are receiving this mail because:
You are watching all bug changes.