[musca] Fixing dmenu for Fedora.

Damien Durand splinux at fedoraproject.org
Wed Apr 25 13:49:28 UTC 2012


commit c5c26f63a8f13694ffc4d2bcc1c23e074c0494a7
Author: damien <damien at rhel.localdomain>
Date:   Wed Apr 25 15:49:07 2012 +0200

    Fixing dmenu for Fedora.

 dmenu_run.patch |   11 +++++++++++
 musca.spec      |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/dmenu_run.patch b/dmenu_run.patch
new file mode 100644
index 0000000..153a037
--- /dev/null
+++ b/dmenu_run.patch
@@ -0,0 +1,11 @@
+--- config.h.orig	2012-04-25 15:35:09.825624843 +0200
++++ config.h	2012-04-25 15:35:31.459564042 +0200
+@@ -39,7 +39,7 @@
+ 	// optional startup file of musca commands, one per line
+ 	{ "startup",                 mst_str,   { .s = ".musca_start" }, ".+" },
+ 	// customize the dmenu command.
+-	{ "dmenu",                   mst_str,   { .s = "sort | dmenu -i -b"  }, ".+" },
++	{ "dmenu",                   mst_str,   { .s = "sort | dmenu_run -i -b"  }, ".+" },
+ 	// customize the actions of dmenu driven window/group/command menus.  by default we
+ 	// just spit commands back to musca, but you can wrap or redirect stuff.  the $MUSCA
+ 	// environment variable is set to argv[0] in setup().  -i means execute stdin.
diff --git a/musca.spec b/musca.spec
index c2ff441..e7a6831 100644
--- a/musca.spec
+++ b/musca.spec
@@ -1,12 +1,13 @@
 Name:           musca
 Version:        0.9.24
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        A simple dynamic window manager fox X
 
 Group:          User Interface/Desktops
 License:        GPLv3
 URL:            http://aerosuidae.net/musca.html
 Source0:        http://aerosuidae.net/%{name}-%{version}.tgz
+Patch0:         dmenu_run.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  coreutils, sed, libX11-devel
@@ -21,6 +22,7 @@ divided into non-overlapping frames, with no restrictions on layout.
 %prep
 %setup -q
 
+%patch0 -p0
 
 %build
 make %{?_smp_mflags}
@@ -59,6 +61,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Apr 25 2012 Damien Durand <splinux25 at gmail.com> - 0.9.24-3
+- dmenu_run in config file instead of dmenu.
+
 * Sun Feb 19 2012 Damien Durand <splinux25 at gmail.com> - 0.9.24-2
 - Add a proper description.
 - We preserve timestamp with the install command.


More information about the scm-commits mailing list