Hi,

if you delete the file ~GNUStep/Defaults/WMRootMenu. Then run WMPrefs
and go to the Menu Edit tab, it show a dialog about keep the menu or
discard it. If you discard it, then it show an error:

"Could not open default menu from
'/home/user/GNUStep/Library/WindowMaker/plmenu"

If we see the code [1], the problem is at WPrefs.app/Menu.c:1424

It happends because uses the "gspath" variable with the user home, but
plmenu is not copied in the installation. Of course, the file don't
needs to be copied to the users home, but the function should read it
form /usr/share/WindowMaker/plmenu (Debian) or
/usr/local/share/WindowMaker/plmenu (upstream) instead $home.

This variable is set in the configure script, but is stored in any .h/.c
file to try to read it?

Thanks.

[1]
static WMPropList *getDefaultMenu(_Panel * panel)
{
        WMPropList *menu;
        char *menuPath, *gspath;

        gspath = wusergnusteppath();

        menuPath = wmalloc(strlen(gspath) + 128);
        sprintf(menuPath, "%s/Library/WindowMaker/plmenu", gspath);

        menu = WMReadPropListFromFile(menuPath);

        if (!menu) {
                char *buffer, *msg;

                msg = _("Could not open default menu from '%s'");

Regards,
kix
-- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/


-- 
To unsubscribe, send mail to [email protected].

Reply via email to