I have the following lines in my rifle.conf for reading pdf files:
ext pdf, has foxitreader, X, flag f = foxitreader -- "$@" ext pdf, has evince, X, flag f = evince -- "$@" ext pdf, has zathura, X, flag f = zathura -- "$@" When I then use ranger to navigate to a pdf file, and hit Enter, foxitreader automatically starts, but gives an error, stating that the pdf file was not found:
--;/home/finn/Documents/Education/Algorithms_Data_Structures/Art_of_Computer_Programing/Art_of_Computer_Programming_(Volume_1)_(2005).pdf File not found. Check if the file was moved,renamed,or deleted. Naturally I tried many different pdfs to the same effect. Moving the evince or zathura lines to a higher priority in my rifle.conf opens the same pdf files successfully with those programs. Running foxitreader from bash opens the pdf files successfully:
$ foxitreader /path/to/pdf I noticed in the foxitreader error message that there's a ; prepended to the file's path (see above). Is that the problem? The rifle.conf entry for foxitreader is written exactly the same as for evince and zathura, and they don't have any problems opening the pdfs. So what's the problem?
foxitreader -- '/home/finn/Documents/Education/Algorithms_Data_Structures/Art_of_Computer_Programing/Art_of_Computer_Programming_(Volume_1)_(2005).pdf'?--it works? Then remove that from your configuration too.