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 ) );