24 Commits

Author SHA1 Message Date
Gregory Danielson
72907cc744
Do not accept empty appname argument
Closes #768
2020-10-26 09:40:38 -05:00
Nikos Tsipinakis
0467e46474 Fix typo 2020-10-26 12:51:47 +02:00
Nikos Tsipinakis
7fc23b23d0 Fix argument terminator handling in dunstify
`g_option_context_parse` which we use to parse command line arguments
leaves the argument terminator, "--", in the argv under specific
circumstances which can cause inconsistent results.

Credit to Opal Hart for reporting this.
2019-06-16 21:37:18 +03:00
Nikos Tsipinakis
0e56c61f8f Fix dunstify --close description 2019-02-28 15:25:41 +02:00
Nikos Tsipinakis
ae370e7289 dunstify: Fix escape chars not being parsed in the body
notify-send uses g_strcompress on the body of the notification to
replace escape chars (e.g. newline). Since dunstify is supposed to be a
drop-in replacement we should match that here as well.
2018-07-05 12:55:24 +03:00
Benedikt Heine
664ec413aa Set Locale in dunstify
If specifying --icon with UTF-8 characters, the g_option_context_parse
fails with an invalid byte conversion. The solution is to set the locale
explicitly.

For more info, see the GLib issue tracker:
https://bugzilla.gnome.org/show_bug.cgi?id=737137

Fixes #443
2017-11-23 11:43:52 +01:00
Nikos Tsipinakis
51a98b8fd0 Dunstify: Print id before blocking
Print the notification id, if requested, before blocking to catch action
return or NotificationClosed signal since once of those events happens
the program will exit without further action, bypassing the id printing
logic.
2017-11-22 17:49:50 +02:00
Nikos Tsipinakis
73eaa25690
Merge pull request #441 from bebehei/align-dunstify-args
Align columns in dunstify option list
2017-11-16 22:10:31 +02:00
Benedikt Heine
ca996c9596 Free notification before closing
The notification object should actually get freed by notify_uninit. But
before freeing the notification, notify_uninit also sends the
CloseNotification signal directly, if the timeout is 0.

But the timeout of 0 should actually indicate a notification, which
never expires.

Fixes #415
2017-10-18 23:45:15 +02:00
Benedikt Heine
3d1acd7b09 Align columns in dunstify option list 2017-09-26 01:36:14 +02:00
Nikos Tsipinakis
dd4deb3b00 Fix raw icon error handling in dunstify 2017-01-20 19:54:37 +02:00
Nikos Tsipinakis
86c917fc95 Implement raw icon support for dunstify
Add the ability to send raw icons with dunstify -I <file path>.
2017-01-20 19:26:16 +02:00
Luke Shumaker
2c93c7a277 Use the appropriate string search functions instead of strstr everywhere.
This mostly means using strchr, but I also found:
  option_parser.c:load_ini_file:
    - replace multiple calls to strstr with strpbrk
  notification.c:notification_init:
    - replace string_replace in a while loop with a single call to
      string_replace_char

redo string replace all
2016-12-17 17:00:43 -03:00
Nikos Tsipinakis
41d3b61f3c Fix compiler warnings when compiling dunstify 2016-12-11 13:26:20 +02:00
Nikos Tsipinakis
7e58e5c64c Add expandtab to vim modelines & expand abbreviations
Add expandtab to vim modelines so that spaces are expanded to tabs, make
life easier for people that have vim configured to use tabs by default.

Expand modeline abbreviations to improve readability.
2016-11-17 20:27:46 +02:00
Sascha Kruse
27eb2bcbe6 remove trailing whitespaces 2014-03-08 19:03:50 +01:00
Giuliano Schneider
844186b77d fixed "warning: ‘g_type_init’ is deprecated" 2013-04-30 13:45:34 +02:00
Sascha Kruse
162a2edbea dunstify: update help for --replace and --close 2013-03-08 07:59:21 +01:00
Sascha Kruse
44612489ab Merge branch 'cairo' of ssh://thinky/home/knopwob/src/c/dunst into cairo 2013-02-25 20:43:00 +00:00
Sascha Kruse
8b706d3f21 dunstify add hint support 2013-02-25 20:42:44 +00:00
Sascha Kruse
783b2cc821 fix segfault when no actions are specified 2013-02-25 14:43:48 +01:00
Sascha Kruse
9c53223034 dunstify: add actions support 2013-02-23 06:30:43 +00:00
Sascha Kruse
71d95394fd replace notify.py with dunstify 2013-02-23 04:51:37 +00:00
Sascha Kruse
5827411c64 dunstify 2013-02-23 04:20:29 +00:00