[Xfce-bugs] [Bug 15623] AppFinder opens two or more windows at the same time despite having activated single windows in preferences

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat Jul 6 03:15:03 CEST 2019


https://bugzilla.xfce.org/show_bug.cgi?id=15623

--- Comment #8 from Mario Rugiero <mrugiero at gmail.com> ---
Simple steps to reproduce (written in a way that can just be copied to the
terminal):

# Kill any server that may be already running. Use `pkill -9` in case it's
hanged up or something.
pkill -9 xfce4-appfinder
# Launch our own server.
xfce4-appfinder &
# Make sure it has enough time to take ownership of the name.
sleep 1
# Freeze it.
# You could close the window before this if you want.
# It doesn't matter, but having the windows is ugly.
# If the OS tells you that it hanged and offers you to close it, say no.
kill -TSTP $!
# Start a few launchers in the background.
for i in {1..5}; do (xfce4-appfinder &); sleep 1; done
# Now, close all of the windows that appeared.
# It has to be done by hand.

# Count how many processes we have now:
pgrep -a xfce4-appfinder

The fix I proposed fixes the persistence of the processes, but fixing the
multiple windows appearing is both a matter of policy and a matter of
diagnosing what causes the server hang in the first place.
The bit about policy is essentially a call for either never spawning windows
outside of the name owner or accepting that the server could fail and fall back
to launching the window when it times out.
The prior would mean that, once the server hangs, no other appfinder window
will appear until it's killed, which is probably undesirable.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list