Andre Klapper
80121a3b8c
docs: Fix URL to Desktop Notification Spec
...
Fixes #29
2022-09-04 11:59:49 +02:00
Marco Trevisan (Treviño)
650f2f123e
Releasing version 0.8.1
...
Update NEWS.
2022-07-17 15:00:39 +02:00
Marco Trevisan (Treviño)
a8374698c4
build: Hardcode API version to 0.7
...
Fixes : #27
2022-07-17 14:58:13 +02:00
Marco Trevisan (Treviño)
359443f70f
Releasing version 0.8.0
...
Update NEWS.
2022-07-14 17:18:41 +02:00
Marco Trevisan (Treviño)
3d81394cd2
NEWS: Fix style on previous announcement
2022-07-14 17:18:25 +02:00
Marco Trevisan (Treviño)
5e6a52fa4f
README: Add reference to Portal Notification APIs
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
532608248e
build: Pre-release bump to 0.8.0
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
adb3e0c7bf
notification: Warn if trying to get the activation token outside activation
...
This API is intended to be used only during a NotifyActionCallback, so
ensure that this is the case, by warn in case it's not the case.
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
13718b6ea0
notify: Also try to use the flatpak app name as notify app
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
f3eb807464
notification: Use Desktop Portal notification when running in sandbox
...
When an application is running from a snap or a flatpak, libnotify
should just work as a FDO Portal Notification wrapper.
As per this, make the library to try use the portal API in sandboxed
applications, by emulating the needed missing pieces.
Not everything can be achieved 1:1, but it's just safer to use in such
contexts.
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
c6534a144c
build: Bump dependency on glib 2.38
...
It's almost 10 years old, so I think we can safely depend on that to
support the features we're optionally depending on, plus the ones we're
going to add
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
543d636153
notification: Move action activation and closing in separate functions
...
Move handling of such events in different functions so that can be
re-used
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
9e9cb423b9
Notification: Add NotifyClosedReason enum to define closed reasons
...
We don't change the formal type of notify_notification_get_closed_reason
but it's safe enough to compare the two returned values.
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
cc30d8b8dd
notify: Support passing a NULL application name to notify_init()
...
We can find its name in some scenarios, so make it clearer from in the API.
Also, ensure that notify_set_app_name() is not used with a NULL App
name.
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
e8ea0c39d0
notify: Use lazy snap readings and once per notify instance
...
An application under snap confinement won't have a way of escaping from
it, so we can just initialize the snap variables at the global notify
scope once and just re-use them when needed.
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
74f87250a3
notify-send: Handle Ctrl+C by closing the notification before exiting
...
Avoid leaving notifications we're waiting for around on SIGNINT
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
07a2b2e32c
notify-send: Add debug logs about the notification daemon
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
8ce5daac4f
notification: Add docs description for NotifyNotification
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
9d28fa3600
notification: Document get_activation_token argument
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño)
4e40a460ce
notification: Fix documentation and transfer info for NotifyActionCallback
2022-06-07 03:18:38 +02:00
Logan Rathbone
8162b1d397
Bump version to 0.7.12
...
Update NEWS.
2022-05-05 12:03:27 -04:00
Logan Rathbone
4d68baf5ef
Merge branch 'fix-electron-crash' into 'master'
...
Closes #25
See merge request GNOME/libnotify!26
2022-05-05 02:10:25 +00:00
Logan Rathbone
596d09a78f
notification: Bookend calling NotifyActionCallback with temporary ref
...
Starting with d0778595
, we access the Notification object after the
NotifyActionCallback; some clients (eg, Electron) have historically
unref'd the object at the end of the NotifyActionCallback. They probably
should not have been doing so, but this hotfix adds an additional ref
before and after the callback so that we don't break existing code.
Fixes #25
2022-05-04 21:04:25 -04:00
Logan Rathbone
f5b9619b2f
doap: Add self as co-maintainer; remove chammond and mccann
...
Per:
- Discussions on #release-team
- No response to email to mccann in over 10 days
- Email response from chammond confirming he should no longer be listed
as maintainer
See also: afef1e98
Closes : #14
2022-05-04 11:36:37 -04:00
Marco Trevisan (Treviño)
afef1e98b3
Adding myself as maintainer
...
As discussed on #release-team:
21:12:18 <ebassi> Trevinho: You could already add yourself to the DOAP file
2022-05-04 16:22:23 +02:00
Marco Trevisan (Treviño)
ecb1d4ec08
libnotify.doap: Add missing description field
2022-05-04 16:22:23 +02:00
Patrick Griffis
6d8e38bc69
Merge branch 'pgriffis/delete-unused-file' into 'master'
...
Delete unused notifynotification.xml
See merge request GNOME/libnotify!25
2022-05-03 20:37:41 +00:00
Patrick Griffis
6e6d52340b
Delete unused notifynotification.xml
2022-05-03 20:35:50 +00:00
Marco Trevisan (Treviño)
1fba04bc03
notification: Include sender-pid hint by default if not provided
...
It's used by various daemons including GNOME Shell to figure out the
parent application.
2022-04-28 01:06:58 +02:00
Marco Trevisan (Treviño)
a674e610ee
notify-send: Add debug message about server not supporting persistence
...
In case a transient notification is requested but persistence is not
supported, it's not an error but it is useful to show a debug message
to clarify that.
2022-04-27 21:32:56 +02:00
Marco Trevisan (Treviño)
c99aacdb91
notify-send: Move server capabilities check to a separate function
2022-04-27 21:32:30 +02:00
Marco Trevisan (Treviño)
997115b459
docs/notify-send: Add --transient option to manpage
2022-04-27 21:25:10 +02:00
Marco Trevisan (Treviño)
e8a57f7245
Bump version to 0.7.11
...
Update NEWS.
2022-04-27 21:05:49 +02:00
Marco Trevisan (Treviño)
ed43da3479
notify-send: Add explicit option to create transient notifications
2022-04-27 20:52:48 +02:00
Marco Trevisan (Treviño)
02f2f91c3d
notify-send: Support passing any hint value, by parsing variant strings
2022-04-27 20:45:06 +02:00
Marco Trevisan (Treviño)
d6f4734adf
notify-send: Add support for boolean hints
...
Boolean hints are used for some common parameters such as "transient".
Original bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636343
2022-04-27 20:33:40 +02:00
Marco Trevisan (Treviño)
6e871a4047
cleanup: Do not use GLIB_CHECK_VERSION
...
It's not supported by GLib 2.26.0, the minimum version we required
2022-04-27 20:18:48 +02:00
Marco Trevisan (Treviño)
59553a5af2
NEWS: Add --wait feature to last release
2022-04-27 20:16:49 +02:00
Marco Trevisan (Treviño)
2674c76f53
Bump version to 0.7.10
...
Update NEWS.
2022-04-27 19:00:44 +02:00
Marco Trevisan (Treviño)
d138596c78
CI: Also install the built files and expose docs and logs
2022-04-27 18:29:47 +02:00
Marco Trevisan (Treviño)
d07785959c
notification: Add support for getting actions activation token
...
Notification actions can now be activated with an activation token
containing platform data. So update the notification-spec to include
latest version of the specification, and expose the activation token
during an action activation.
Not to change the API, by modifying the type of NotifyActionCallback
it's just better to provide a function to fetch the activation token
during activation only, so that this can be retro-compatible.
Reference: https://gitlab.freedesktop.org/xdg/xdg-specs/-/commit/b9a4700
2022-04-27 18:02:20 +02:00
Marco Trevisan (Treviño)
47400a2ff7
notify-send: Clear errors that could be re-used
...
We're using error variable multiple times, and this may lead to problems
when trying to set it again. So let's just clear once it's used.
2022-04-25 22:23:40 +02:00
Marco Trevisan (Treviño)
1da6996491
notify: Use the application ID if available to set the fallback app name
2022-04-25 22:23:40 +02:00
Ben Blain
e05030875e
docs/notify-send: Add missing --app-name description to manual
2022-04-25 22:23:40 +02:00
Ben Blain
12d4b90623
notify-send: Check for notification server actions capability support
2022-04-25 22:23:40 +02:00
Ben Blain
6c707d2dfd
notify-send: Add support for notification actions and responses
...
The activated action name is written to stdout and the notification is closed
when a valid action has been selected.
2022-04-25 22:23:37 +02:00
Ben Blain
a396dd9af9
notify-send: Add option to wait until notification has been closed
...
If an expiration timeout is set, the notification is not waited longer
than such time.
2022-04-25 22:15:50 +02:00
Matthias Sweertvaegher
00a7e74774
docs/notify-send: Add print/replace-id arguments to man page
2022-04-25 19:43:12 +02:00
Paul Collins
652b4d6911
notify-send: Support for replacing an existing notification
...
Support printing and overriding notification ID, so that it's possible
to replace a notification that is currently showing with an updated
content.
Based on patch as provided by Paul Collins in the following bug
report:
https://bugs.launchpad.net/ubuntu/+source/libnotify/+bug/257135/comments/8
Co-authored-by: Marco Trevisan (Treviño) <mail@3v1n0.net>
Fixes #19
2022-04-25 19:42:13 +02:00
Marco Trevisan (Treviño)
f9c1cf1b71
notification: Keep converted URIs as such when we prepend a path
2022-04-25 19:13:22 +02:00