enkore / j4-dmenu-desktop

A fast desktop menu
GNU General Public License v3.0
673 stars 69 forks source link

Fix --no-exec #152

Closed meator closed 3 months ago

meator commented 7 months ago

Currently, the command is printed to stderr with User input is: <selected name (not executable)> when --no-exec is specified. This is fine for a dry-run mode, but printing the command to stderr complicates scripting. Printing it to stdout would simplify scripting (but usage of it, especially in wait on mode, could be hacky).

meator commented 3 months ago

I don't know why, but I have assumed that j4-dmenu-desktop version r2.18 printed --no-exec values to stderr. Because of this, I made it print to stderr to "maintain compatibility". I have even acknowledged that this is nonsensical by creating this issue. But j4dd r2.18 printed it to stdout (as one would expect).

I have stumbled upon this when examining no_exec mechanism in more detail because of #166