Skip to content

Add Actions to Desktop Notifications #84

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

Merged
merged 5 commits into from
Jul 10, 2025
Merged

Conversation

kilo52
Copy link
Member

@kilo52 kilo52 commented Mar 7, 2025

Adds notification actions to the success desktop notifications.
Changes the implementation of the _show_notif_success() function to handle the arguments eventually given to notify-send to show a desktop notification on supported platforms when a new project is initialized. The actual invocation of notify-send is moved to a new internal function _show_notif_success_impl() so that the invocation can be pushed to the background, since notify-send will block until the notification is dismissed or an action button is pressed by the user.

Changed the implementation of the _show_notif_success() function to handle
the arguments eventually given to notify-send to show a desktop notification
on supported platforms when a new project is initialized. The actual invocation
of notify-send is moved to a new internal function _show_notif_success_impl()
so that the invocation can be pushed to the background, since notify-send will
block until the notification is dismissed or an action button is pressed by
the user.
@kilo52 kilo52 self-assigned this Mar 7, 2025
@kilo52 kilo52 added Improvement Improvement of an existing feature Feature New feature labels Mar 7, 2025
@kilo52 kilo52 linked an issue Mar 7, 2025 that may be closed by this pull request
kilo52 added 4 commits June 18, 2025 21:46
This is used to allow addons to customize the branding via addons when their
own applications when they integrate with project-init.

Signed-off-by: kilo52 <[email protected]>
Is added to check for available notify-send version to make sure that actions are
supported, before adding them to the notication arguments when displaying the
success desktop notication.

Signed-off-by: kilo52 <[email protected]>
Fixed masking return value.
Disabled linter complaint for known version value format.
Added return status check for notify-send command and early return.

Signed-off-by: kilo52 <[email protected]>
@kilo52 kilo52 merged commit 77de0fb into master Jul 10, 2025
5 checks passed
@kilo52 kilo52 deleted the feature/notif-success-actions branch July 13, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature Improvement Improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Actions to Desktop Notifications
1 participant