l4l / yofi

yofi is a minimalistic menu for wayland
https://crates.io/crates/yofi
MIT License
361 stars 21 forks source link

Warnings interfere with "dmenu" style usage #165

Closed ideasman42 closed 3 months ago

ideasman42 commented 3 months ago

When looking to replace wofi/dmenu with yofi I ran into a problem.

yofi dialog is always printing a warning which interferes with the stdout - used to receive the output of the command.

{options} | yofi dialog

Should output selected_menu_item, instead it outputs a warning, then the menu item.

e.g.

2024-06-23T00:36:18.346367550Z[yofi::window::compositor][WARN] unexpected transform_changed
selected_menu_item

Ideally any warnings should output to the stderr, so the stdout can be relied on for intended output.

Tested with 2.2 stable and my own build of: 0d7af4653fa8f119a4aee0b7981edc88a6c7e892.