From 6bf5f947a9c30e7f67ba761404e040de582ea8d1 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Sun, 15 Jan 2012 02:47:20 +0000 Subject: [PATCH] wmgenmenu: Fix "Save Theme" Dario Niedermann reported on 27.11.2011: Selecting "Save Theme" from WMaker's root menu results in dialog box asking for theme name, but then nothing is saved. This feature used to work in 0.92.0. and the reason for it (if he uses a WMRootMenu generated by wmgenmenu) is the incorrect use of the option "-t" instead of "-p" to getstyle. Furthermore, let the invocation of getstyle reflect the new default location for the themes. --- util/wmgenmenu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/wmgenmenu.c b/util/wmgenmenu.c index f934b38a..002e0250 100644 --- a/util/wmgenmenu.c +++ b/util/wmgenmenu.c @@ -243,8 +243,7 @@ int main(int argc, char *argv[]) L2Menu = WMCreatePLArray( WMCreatePLString(_("Save Theme")), WMCreatePLString("SHEXEC"), - WMCreatePLString("getstyle -t $HOME/GNUstep/Library/WindowMaker/Themes/" - "\"%a(Theme name, Name to save theme as)\""), + WMCreatePLString("getstyle -p \"%a(Theme name, Name to save theme as)\""), NULL ); WMAddToPLArray(L1Menu, L2Menu);