git.lucas.co / fontpreview
git clone https://git.lucas.co/fontpreview.git

commit3a9c4538f0e4317908af09d866b92923709ff58f
parent347c8f3cc9
authorMateusz Piotrowski <0mp@FreeBSD.org>
date2020-02-11 11:10
Fix sxiv invocation

The file name has to be the last argument. It was causing the following
errors:

    sxiv: -N: No such file or directory
    sxiv: fontpreview: No such file or directory
    sxiv: -b: No such file or directory

 fontpreview | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fontpreview b/fontpreview
index 3d2ce80..f9595f0 100755
--- a/fontpreview
+++ b/fontpreview
@@ -124,7 +124,7 @@ main(){
 	    if  [ ! -e /proc/$PID ] ; then
 		echo "Restart sxvi - You maybe using a obsolete version. " >&2
 		# Display the font preview using sxiv
-		sxiv -g "$SIZE$POSITION" "$FONT_PREVIEW" -N "fontpreview" -b &
+		sxiv -g "$SIZE$POSITION" -N "fontpreview" -b "$FONT_PREVIEW" &
 
 		# Change focus from sxiv, back to the terminal window
 		# so that user can continue to search for fonts without