0

I set Viewnior for open image files, but when I open any image file (jpg or png) ranger stays frozen or something similar, and I only can return to ranger when I close the app that opened the file. Therefore, I can't open other files, only one.

My rifle.conf :

ext png = viewnior "$@"
1

2 Answers 2

1

It seems to be, based on an sample rifle.conf file I found, that you'd need the f flag to ask Ranger to Fork the program, make it run in the background:

ext png, flag f = viewnior "$@"
0
-1

I have solved the issu by adding & at the end.

ext png, flag f = viewnior "$@" &

The "&" force the program to be run in th backgournd.

2
  • 1
    Are you sure you need both flag f and the &? The `f`` flag is described as running the application in the background Commented Aug 16, 2021 at 15:04
  • the flag f doesn't worked for me, perhaps it was some specifick issue, after putting & on the end everything work as a charm. Commented Aug 17, 2021 at 15:32