hellosiyan / Viewnior

Elegant Image Viewer
https://siyanpanayotov.com/project/viewnior/
GNU General Public License v3.0
323 stars 56 forks source link

Viewnior can't open .png files on SSH drives? #143

Open LorenAmelang opened 3 weeks ago

LorenAmelang commented 3 weeks ago

Viewnior is easily my preferred viewer, but occasionally it says there are no images in the file I selected. I haven't systematically tested it, but every time I've noticed that, the file is a .png and it is on an already mounted SSH drive. Any other viewer in my list of options can open the same file normally. Copy the file to a local drive and Viewnior can open it.

Is there maybe some trick that would solve this?

wichrgh commented 3 weeks ago

I have the same issue with every .png file located on a SMB share.

This is the result when I doubleclick an image or if I try to open it with the context menu (xfce4): image

I can't tell with wich release Viewnior lost this ability, but a few releases back it worked fine.

wichrgh commented 2 weeks ago

Actually the source of my problem is not Viewnior, because I observe a similar behavior with almost any other lightweight viewer. I know for sure that it worked in the past. Maybe something changed in the way the SMB/CIFS client handles the shares, which leads to the observed problem?

Btw, the thumbnailer service has no issues with creating thumbnails, which proves that access to the files is granted and the files are ok.

wichrgh commented 2 weeks ago

Looks like this tool does does no longer get the love it deserves from the original author.

I solved the problem for me by mounting the share in a subfolder of my home folder using the cifs-tools and accessing the content from there, instead of accessing it directly by using the smb:// path.

LorenAmelang commented 2 weeks ago

Interesting... I'm on Linux, using plain SSH to open remote files. They're mounted in my filesystem, but not inside a folder on my local drive. Probably more urgent things than figuring out if I could do that...

qarkai commented 1 week ago

Coudl you try if #135 fixes this issue?

LorenAmelang commented 1 week ago

@qarkai That change makes sense, but I'm not sure how to try it. I guess I'd have to download all the source files, swap in that one, and build a new Viewnior version myself? I could probably do that eventually, but I suspect it would be many hours of learning and struggle...

So much easier to just select a different app - EYE of Gnome, EYE of MATE, GIMP, or any browser I've tried just work.