e1cca6a9ce
- Update to WindowMaker-0.95.6 - Add: WindowMaker-0.95.6.tar.gz - Remove: WindowMaker-0.95.5.tar.gz - Update WindowMaker-menu.patch to reflect changed menu.nl in 0.95.6. - Update fix_wmgenmenu_paths.patch as most changes are already present in 0.95.6. - Update wm-giflib.c to reflect code changes (ie. re-written wrlib/gif.c with wrlib/load_gif.c). Not clear if this patch is even needed, but keeping it around. OBS-URL: https://build.opensuse.org/request/show/259998 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/WindowMaker?expand=0&rev=32
52 lines
2.0 KiB
Diff
52 lines
2.0 KiB
Diff
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>
|
|
---
|
|
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[])
|
|
{
|
|
char *t;
|
|
int ch;
|
|
- char *tmp, *theme_paths, *style_paths, *icon_paths;
|
|
+ char *tmp, *theme_paths, *style_paths, *icon_paths, *bg_paths;
|
|
|
|
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");
|
|
+ bg_paths = wstrconcat(tmp, "/Backgrounds $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t");
|
|
|
|
struct option longopts[] = {
|
|
{ "version", no_argument, NULL, 'v' },
|
|
@@ -244,7 +245,7 @@ int main(int argc, char *argv[])
|
|
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);
|
|
@@ -333,7 +334,7 @@ int main(int argc, char *argv[])
|
|
L1Menu = WMCreatePLArray(
|
|
WMCreatePLString(_("Configure Window Maker")),
|
|
WMCreatePLString("EXEC"),
|
|
- WMCreatePLString("WPrefs"),
|
|
+ WMCreatePLString("/usr/lib/GNUstep/Applications/WPrefs.app/WPrefs"),
|
|
NULL
|
|
);
|
|
WMAddToPLArray(RMenu, L1Menu);
|