phuhl / notify-send.py

A python-script like libnotify but with improved functionality
Other
95 stars 13 forks source link

Enable colon characters in action names #20

Closed PsychicNoodles closed 3 years ago

PsychicNoodles commented 3 years ago

Trying to use an action with a colon in it (like a URL with the protocol intact) would cause an error due to split only expecting two results. By adding maxsplit=1, after the first colon, which is used to delimit the key and name, everything else is kept intact in the name. For example, this now works:

notify-send.py --action default:https://google.com -- "google it"

image