vlevit / notify-send.sh

drop-in replacement for notify-send with more features
GNU General Public License v3.0
282 stars 40 forks source link

Mark positional args on `gdbus call` invocation #19

Closed baodrate closed 3 years ago

baodrate commented 3 years ago

Currently, the script consumes the -- argument that marks the beginning of positional arguments.

That means that despite properly deliminating the positional arguments with --, gdbus call is invoked improperly.

See this usage example comparing the results of libnotify's notify-send against notify-send.sh

$ notify-send summary -test
Missing argument for -t

$ notify-send.sh summary -test
Unknown option -test

$ notify-send -- summary -test
# notification produced with body '-test'

$ notify-send.sh -- summary -test
Usage:
  gdbus call [OPTION…]
...
vlevit commented 3 years ago

@qubidt thank you!