From 5e4cf732e62441d992de22dd98478e6b33cf0bec Mon Sep 17 00:00:00 2001 From: QC Date: Sun, 5 Apr 2015 21:16:27 +0200 Subject: [PATCH] Fix issue #142, pass -M instead of full path. --- Makefile.am | 2 +- source/rofi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index b1b3fe9e..46efec52 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,7 +18,7 @@ AM_CFLAGS=\ @x11_CFLAGS@\ @xinerama_CFLAGS@\ @pango_CFLAGS@\ - -DMANPAGE_PATH="\"$(mandir)/man1/rofi.1\""\ + -DMANPAGE_PATH="\"$(mandir)/\""\ -I$(top_srcdir)/include/\ -I$(top_srcdir)/config/\ -I$(top_builddir)/\ diff --git a/source/rofi.c b/source/rofi.c index 3acad4ed..6187524b 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -1505,7 +1505,7 @@ static void handle_keypress ( XEvent *ev ) */ static void help () { - int code = execlp ( "man", "man", MANPAGE_PATH, NULL ); + int code = execlp ( "man", "man", "-M", MANPAGE_PATH, "rofi",NULL ); if ( code == -1 ) { fprintf ( stderr, "Failed to execute man: %s\n", strerror ( errno ) );