Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Update
WindowMaker
fix_wmgenmenu_paths.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_wmgenmenu_paths.patch of Package WindowMaker
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);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor