The problem seems to be with xfdesktop and the /Desktop entries. Every time I run any app from the desktop after some time of using it and closing it with File->Exit or X it spawns a zombie. Anyway running apps from Terminal this way: ./some_app & or from menu works fine. Now I have some ./firefox <defunct> entries, some ./opera <defunct> entries, and few another <defunct> entries. Reproductible: Always Steps: 1.Install XFCE from installer or distribution packages (no matter). 2.Run antyhing from the desktop which was a KDE shortcut before. 3.Play with your app some time and close it. 4.Watch ps list. Result: huge army of zombies :] Expected: no zombies
What's a "KDE shortcut"? I can't reproduce this with normal .desktop-style shortcuts.
(In reply to comment #1) > What's a "KDE shortcut"? I can't reproduce this with normal .desktop-style > shortcuts. > I mean I use KDE most of the time, so it also uses /Desktop directory for it's shortcuts. I don't know if it is its special style of .desktop files or is it a part o some standard (freedesktop.org?) all I know is I close KDE, open XFCE, and I see the same shortcuts(icons) on my desktop. I run any of them and after closing app I get <defunct> in ps list. At first I thought it was some kind of distribution problem (Mandriva) so I removed xfce 4.4.0 rpms and downloaded XFCE Installer and compiled it without optimizations but it's still the same. I don't know, maybe it's a .desktop files problem in Mandriva. I can't check this with other distros.
Created attachment 1020 firefox straced zombie
Created attachment 1021 firefox straced zombie result
I've attached shortcut made under KDE and a strace result. Maybe this will help you.
Looks like KDE's shortcut files are just normal .desktop files. Benny, any ideas here? I'm just using thunar_vfs_info_execute() to launch .desktop files.
Ok, this is weird :]. I removed entire StartupNotify line from the attached .desktop file and It works now(no zombies). I'll have to do some more tests but it seems to be it.
This bug seems to affect thunar (0.8.0) as well. I examined some desktop files and it does seem that only desktop files with StartupNotify=true will leave behind zombies.
Pretty sure this isn't an xfdesktop problem...
I'm seeing this for both xfdesktop and Thunar when using gnumeric. In short, doubleclicking on a .gnumeric file in either will launch gnumeric, but after quitting the program the zombie is left behind: 7708 ? 00:00:03 Thunar 12152 ? 00:00:01 \_ gnumeric <defunct> 24509 ? 00:00:00 \_ gnumeric <defunct> 7712 ? 00:00:29 xfdesktop 14447 ? 00:00:02 \_ gnumeric <defunct> 25427 ? 00:00:04 \_ gnumeric <defunct> 25454 ? 00:00:12 \_ gnumeric <defunct>
Created attachment 1153 Prevent zombies The panel in trunk had similar problems using the same code as Thunar and a patch like this one seems to fix the problems. I'm not really sure if this is the best way to fix it, but it's a start...
Mandriva seems to have applied a patch for this: http://rpmfind.net/linux/RPM/mandriva/devel/cooker/x86_64/media/contrib/release/thunar-0.8.0-8mdv2008.0.x86_64.html (see their changelog) Ubuntu bug for this: https://bugs.launchpad.net/ubuntu/+source/thunar/+bug/163106
(In reply to comment #12) > Mandriva seems to have applied a patch for this: > http://rpmfind.net/linux/RPM/mandriva/devel/cooker/x86_64/media/contrib/release/thunar-0.8.0-8mdv2008.0.x86_64.html > (see their changelog) > It seems that mandriva applied the patch attached to this bug.
Thunar 0.9.0 has been released without fix this bug? why? is a really annoying bug that distributions are patching on his side with the patch in this report.
The patch is really a hack.
wow what a fast reply :), sorry i didnt know, i am using it in my machines but i suppose a real patch would be too much work for this version.
Honestly, I simply forgot about this bug (was not on my ASSIGNED list yet). I'll try to come up with a patch.
Created attachment 1451 Suggested fix This patch should do the trick.
i will test it tomorrow and post here my results thanks Benedikt.
Created attachment 1452 Better fix Err, the previous one was bogus. This one should do.
Benedikt your patch works very well with Thunar 0.8.0 and it seems that all xfce it is much more responsive in this version 4.4.2, or i am very optimistic hehehe
Committed with revision 26432. 2007-12-03 Benedikt Meurer <benny@xfce.org> * thunar-vfs/thunar-vfs-exec.c: Make sure, processes spawned from Thunar and xfdesktop are properly joined. Bug #2983.
*** Bug 3942 has been marked as a duplicate of this bug. ***
I still don't see this fix in 0.9.3.