xfdesktop crashes if there is no menu file available and create_desktop_menu() function is called twice. The source code location: xfdesktop-4.0.3/src/menu.c /* returns the menu widget */ static GtkWidget *create_desktop_menu(void) { ... /* Still no luck? Something got broken! */ if (stat(filename, &st) < 0) { if (filename) { g_free(filename); } return NULL; } ... }
Additional information: How to repeat: On OpenBSD-current(Feb 2004): # cd /usr/ports/x11/xfce4/desktop/xfdesktop # make install $ xfdesktop Then right-click the desktop twice. (Yes, that xfdesktop port is slightly broken.) How to fix: Add line filename = NULL; after g_free(filename). $ diff -u menu.orig.c menu.c --- menu.orig.c Tue Feb 24 20:36:56 2004 +++ menu.c Tue Feb 24 20:40:15 2004 @@ -498,6 +498,7 @@ if (filename) { g_free(filename); + filename = NULL; } return NULL; }
fixed in CVS, both HEAD and xfce_4_0 branch. thanks for the report and fix!
mass reassign from zz-do-not-use to general, so i can remove the zz-do-not-use component. sorry for the spam, search for this string to filter these: fis7cldoq35p3kjdu74emc