mako icon indicating copy to clipboard operation
mako copied to clipboard

`makoctl menu` parses menu program's flags as its own

Open LRitzdorf opened this issue 9 months ago • 1 comments

As of version 1.10.0, makoctl menu appears to incorrectly parse flags passed as part of the menu-item selection program as if they were intended for makoctl itself. Even an example taken directly from the manpage exhibits this:

❯ makoctl menu dmenu -p 'Select Action: '
menu: invalid option -- 'p'

I'm going to assume this is a relatively straightforward parsing issue, but am happy to provide further testing if needed!

LRitzdorf avatar Mar 21 '25 18:03 LRitzdorf

Ah, likely due to the fact glibc parsing options in a non-POSIX-compliant way…

A workaround is makoctl menu -- dmenu -p 'Selection Action: '.

emersion avatar Mar 21 '25 18:03 emersion