Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notify about absent replacement placeholders in custom commands
Such as `--open-command='xdg-open "%u"'` Closes #142
- Loading branch information
1329e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the following in
~/.config/sclirc
After this change, the notification no longer works and I see the error about not using a placeholder.
1329e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reporting this!
It happens because the
--notification-command
expects two replacement placeholders:%s
for the sender, and%m
for the message text. However, omitting one of them, as in your example, should be perfectly valid for this command.I'll make some changes to indicate to
callf
that some of the placeholders in the command string are optional.1329e23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed in 6cb807d