You are not logged in.
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/pdfI 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?
Last edited by Nadzinator (2018-01-17 17:21:28)
Offline
Try it without the '--' in your 'ext pdf' line for foxitreader.
Offline
Offline
Try it without the '--' in your 'ext pdf' line for foxitreader.
Yep, that solved it! I tried that before posting, but it didn't work. It's working now; not sure why, but thank you that is the simple solution.
Offline
2ManyDogs wrote:Try it without the '--' in your 'ext pdf' line for foxitreader.
Yep, that solved it! I tried that before posting, but it didn't work. It's working now; not sure why, but thank you that is the simple solution.
If you look at the example rifle.conf, you will see that some pdf readers need the '--' and some (like mupdf) do not. My clue was the error message in your first post -- it looked like foxitreader was trying to parse the '--' as if it was part of the filename.
Offline