2014-04-16 10:57:41 +02:00
|
|
|
From 3981805ec78adf4479f0988cfc2174a02d58a738 Mon Sep 17 00:00:00 2001
|
|
|
|
From: "Carlos R. Mafra" <crmafra@gmail.com>
|
|
|
|
Date: Thu, 10 Apr 2014 19:34:48 +0100
|
|
|
|
Subject: [PATCH] wmgenmenu: Write paths according to options set at configure
|
|
|
|
time
|
|
|
|
|
|
|
|
As reported by Shawn W Dunn, the configuration strings written by wmgenmenu
|
|
|
|
in $HOME/GNUstep/Defaults/WMRootMenu were not reflecting his installation
|
|
|
|
directories choices.
|
|
|
|
|
|
|
|
Fix this by writing strings composed with PKGDATADIR.
|
|
|
|
|
|
|
|
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
|
|
|
|
---
|
2014-11-10 12:08:34 +01:00
|
|
|
Index: WindowMaker-0.95.6/util/wmgenmenu.c
|
|
|
|
===================================================================
|
|
|
|
--- WindowMaker-0.95.6.orig/util/wmgenmenu.c
|
|
|
|
+++ WindowMaker-0.95.6/util/wmgenmenu.c
|
|
|
|
@@ -41,12 +41,13 @@ int main(int argc, char *argv[])
|
2014-04-16 10:57:41 +02:00
|
|
|
{
|
|
|
|
char *t;
|
|
|
|
int ch;
|
2014-11-10 12:08:34 +01:00
|
|
|
- char *tmp, *theme_paths, *style_paths, *icon_paths;
|
2014-04-16 10:57:41 +02:00
|
|
|
+ char *tmp, *theme_paths, *style_paths, *icon_paths, *bg_paths;
|
2014-11-10 12:08:34 +01:00
|
|
|
|
|
|
|
tmp = wstrconcat("-noext ", PKGDATADIR);
|
|
|
|
theme_paths = wstrconcat(tmp, "/Themes $HOME/GNUstep/Library/WindowMaker/Themes WITH setstyle");
|
|
|
|
style_paths = wstrconcat(tmp, "/Styles $HOME/GNUstep/Library/WindowMaker/Styles WITH setstyle");
|
|
|
|
icon_paths = wstrconcat(tmp, "/IconSets $HOME/GNUstep/Library/WindowMaker/IconSets WITH seticons");
|
2014-04-16 10:57:41 +02:00
|
|
|
+ bg_paths = wstrconcat(tmp, "/Backgrounds $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t");
|
|
|
|
|
|
|
|
struct option longopts[] = {
|
|
|
|
{ "version", no_argument, NULL, 'v' },
|
2014-11-10 12:08:34 +01:00
|
|
|
@@ -244,7 +245,7 @@ int main(int argc, char *argv[])
|
2014-04-16 10:57:41 +02:00
|
|
|
L3Menu = WMCreatePLArray(
|
|
|
|
WMCreatePLString(_("Images")),
|
|
|
|
WMCreatePLString("OPEN_MENU"),
|
|
|
|
- WMCreatePLString("-noext $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t"),
|
|
|
|
+ WMCreatePLString(bg_paths),
|
|
|
|
NULL
|
|
|
|
);
|
|
|
|
WMAddToPLArray(L2Menu, L3Menu);
|
2014-11-10 12:08:34 +01:00
|
|
|
@@ -333,7 +334,7 @@ int main(int argc, char *argv[])
|
2014-04-16 10:57:41 +02:00
|
|
|
L1Menu = WMCreatePLArray(
|
|
|
|
WMCreatePLString(_("Configure Window Maker")),
|
|
|
|
WMCreatePLString("EXEC"),
|
|
|
|
- WMCreatePLString("WPrefs"),
|
|
|
|
+ WMCreatePLString("/usr/lib/GNUstep/Applications/WPrefs.app/WPrefs"),
|
|
|
|
NULL
|
|
|
|
);
|
|
|
|
WMAddToPLArray(RMenu, L1Menu);
|