summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* notify-send: Add debug message about server not supporting persistenceMarco Trevisan (Treviño)2022-04-271-0/+6
| | | | | | 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.
* notify-send: Move server capabilities check to a separate functionMarco Trevisan (Treviño)2022-04-271-8/+17
|
* notify-send: Add explicit option to create transient notificationsMarco Trevisan (Treviño)2022-04-271-0/+9
|
* notify-send: Support passing any hint value, by parsing variant stringsMarco Trevisan (Treviño)2022-04-271-1/+10
|
* notify-send: Add support for boolean hintsMarco Trevisan (Treviño)2022-04-271-1/+12
| | | | | | Boolean hints are used for some common parameters such as "transient". Original bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636343
* cleanup: Do not use GLIB_CHECK_VERSIONMarco Trevisan (Treviño)2022-04-271-1/+1
| | | | It's not supported by GLib 2.26.0, the minimum version we required
* notification: Add support for getting actions activation tokenMarco Trevisan (Treviño)2022-04-271-0/+8
| | | | | | | | | | | | | 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
* notify-send: Clear errors that could be re-usedMarco Trevisan (Treviño)2022-04-251-2/+2
| | | | | 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.
* notify-send: Check for notification server actions capability supportBen Blain2022-04-251-1/+17
|
* notify-send: Add support for notification actions and responsesBen Blain2022-04-251-0/+53
| | | | | The activated action name is written to stdout and the notification is closed when a valid action has been selected.
* notify-send: Add option to wait until notification has been closedBen Blain2022-04-251-0/+39
| | | | | If an expiration timeout is set, the notification is not waited longer than such time.
* notify-send: Support for replacing an existing notificationPaul Collins2022-04-251-3/+18
| | | | | | | | | | | | | | 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
* notify-send: Give failing exit code if showing notification failsRay Strode2021-05-141-4/+14
| | | | | | | | | Right now notify-send will quietly return a successful exit status even if showing the notification fails. This commit changes the behavior to instead fail on failure. https://gitlab.gnome.org/GNOME/libnotify/-/merge_requests/13
* notify-send: Support commas in icon filenamesThorsten Wißmann2021-03-261-13/+2
| | | | | | | | | | | | Do not cut off an icon filename (passed to -i) at the first comma character. The original motivation probably was to support a list of icon names in -i separated by comma. However, this has never been implemented and the help text for -i also only mentions "an icon". Hence, no functionality is lost by this change. In contrast, -i now supports commas in icon filepaths. https://gitlab.gnome.org/GNOME/libnotify/-/issues/16
* Drop AutotoolsJan Tojnar2020-01-131-13/+0
|
* notify-send: allow passing colon as hint valueMarco Trevisan (Treviño)2019-02-151-1/+1
| | | | | | | | | | | | | While some hints like image-path or sound-file supports parameters using the file:// protocol, it's impossible to pass such hints to notify-send, because it splits the passed argument so that it can have an unlimited number of colons, while only 3 should be there (as per TYPE:NAME:VALUE format). So, make `g_strsplit` to accept only 3 tokens as maximum, while pass the remaining parameters all-together. So now it's possible to do notify-send -h string:image-path:file:///usr/share/icons/foo.png
* Build with meson and add CIMarco Trevisan2019-01-311-0/+7
|
* Conditionall call g_type_init() after a version checkEmmanuele Bassi2017-07-171-0/+2
| | | | | There's no need to call g_type_init() since GLib 2.36, so let's hide it when building against newer versions of GLib.
* notify-send: Call setlocale in main functionTing-Wei Lan2016-10-221-0/+3
| | | | | | It is required to correctly show translated messages on some locales. https://bugzilla.gnome.org/show_bug.cgi?id=760438
* notify-send: Add ability to set app nameJasper St. Pierre2011-10-121-0/+4
|
* Make notify-send always die on warningsWilliam Jon McCann2010-11-151-0/+1
|
* Remove the ability to attach notifications to widgets or positionsWilliam Jon McCann2010-10-081-2/+1
|
* Various cleanupsWilliam Jon McCann2010-06-241-3/+1
|
* Sending NULL body is allowedWilliam Jon McCann2010-06-231-1/+1
|
* Replace escape characters with g_strcompress in bodyWilliam Jon McCann2010-04-021-4/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=613999
* Add pango's .gitignore generation fooWilliam Jon McCann2010-01-311-0/+2
|
* Use a consistent styleWilliam Jon McCann2010-01-291-238/+226
|
* Fix indentationWilliam Jon McCann2010-01-091-24/+28
|
* Relicense notify-send under the LGPL in order to keep licensing simple and ↵Christian Hammond2007-08-261-11/+11
| | | | to allow reuse in more projects. Fixes bug #124.
* Use fprintf instead of g_warning.Christian Hammond2006-04-211-6/+7
|
* Patch by M.S. to switch notify-send to use GOption instead of popt, to add ↵Christian Hammond2006-04-212-65/+199
| | | | -v, --version, -h, and --hint options, and to rename -T, --type to -c, --category. This also fixes assertions when calling notify-send "". This closes ticket #41.
* - Change the help for notify-send to indicate that --expire-timeout requires ↵Christian Hammond2006-03-201-5/+5
| | | | | | | milliseconds, not seconds. This fixes bug #28. - Fixed the short flag for --type to be -T. This fixes bug #18.
* Fix notify-send on PPC.Christian Hammond2006-03-181-1/+1
|
* Remove notify_notification_show_and_forget(). It's less confusing to have ↵Christian Hammond2006-01-201-1/+2
| | | | one show function, and require that the user unref. It also simplifies the code quite a bit.
* - Fix some weird argument ordering in the calls to dbus_g_proxy_call_*().Christian Hammond2006-01-201-1/+1
| | | | | | | - Re-order the arguments as per the spec. - Change NOTIFY_TIMEOUT_* to NOTIFY_EXPIRES_*. - Update the spec to 0.9.
* Make notify-send work again when a body isn't specified.Christian Hammond2006-01-191-9/+8
|
* Fix some C99 usage.Christian Hammond2006-01-111-2/+2
|
* * Release 0.3.0John (J5) Palmieri2005-12-132-3/+3
| | | | | | | | * tests/Makefile.am, tools/Makefile.am: patch from Rodney Dawes <dobey at novell.com> fixing make distcheck * tools/notify-send.c: use show_and_forget
* First import of the next generation libnotify APIJohn (J5) Palmieri2005-11-102-0/+155