diff options
author | QC <qball@gmpclient.org> | 2015-04-05 21:16:27 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-04-05 21:16:27 +0200 |
commit | 5e4cf732e62441d992de22dd98478e6b33cf0bec (patch) | |
tree | f04bc180f57db9dc5aa2f9b2be481c64ae22e349 | |
parent | c9707b4c1b029b91ba9e0342cbdbef6d67fbecfe (diff) |
Fix issue #142, pass -M <root> instead of full path.
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | 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 ) ); |