Debian GNU/Linux "Jessie" x64
WindowMaker 0.95.5
Xfe 1.37
Archiver is default "xarchiver".
Issue:
When using the right-click context menu on an archive and selecting one of the "Extract" options, after pressing the "Close" button on the output window, an icon remains in WindowMaker. One for every time the operation is performed.
All icons are removed when Xfe is closed.
Expected:
Additional archive operation WindowMaker icon closes when output window is closed.
I can't find left-over processes using ps, so this is purely cosmetic. Presumably whatever logic is behind the "Close" button isn't cleaning up all the resources.
Enhancement suggestion:
Add an option to automatically close the output window after the operation completes. And/or have a minimal output window which shows a progress bar instead of listing the extracted files.
Ok, had a quick look at the source code, and basically it seems that "delete this" is not executed when the Close button is pressed. Perhaps "onWatchProcess()" does not get called anymore after the window is hidden? (I don't know the fox toolkit).
The following patch fixes (or at least works-around) the issue:
... ok, yes, you don't add a new chore if the child has finished. So after "END OF COMMAND" is added to the output buffer, onWatchProcess() will never be called again, so the entire first section of that function ( if(close) ) is superfluous.
So the bug is not just cosmetic, but leaking a dialog every time a CommandWindow is used.
Last edit: Micha 2014-10-26
Also, from http://www.fox-toolkit.org/timers.html:
So it might be worthwhile to rethink your CommandWindow implementation to use timers instead?
This is fixed in Xfe 1.40.
Thanks for the bug report.
RB