dmenu-mac icon indicating copy to clipboard operation
dmenu-mac copied to clipboard

dmenu doesn't exit after selecting an application

Open 0xch4z opened this issue 1 year ago • 1 comments

First off, thanks for writing this! So much better than running an XQuartz port of dmenu.

Anyway, I've found that when running dmenu-mac without any arguments (as an application launcher), the process doesn't exit after launching the selected application. I did some digging after opening my activity monitor showed ~100 dmenu-mac processes.

bug (It's a little difficult to see but, if you look at the terminal you can see it blocking after selecting "Activity Monitor" on the second run)

I'm assuming this isn't the intended behavior as when piping options to dmenu, it exits as soon as something is selected.


EDIT: after reading this code in the SearchViewController, I see that hiding the application instead of exiting is intended? You can consider this issue a "feature request" for a flag that closes after a selection is made. I'll put a PR up 😄

0xch4z avatar Jan 07 '23 17:01 0xch4z