If it looks like a local environment issue, please try to debug yourself. Debugging local setup issues is not our top priority.
Before opening an issue, please try to reproduce on latest master. The bug you noticed might have already been fixed.
Useful links:
nnn from source - https://github.com/jarun/nnn#from-sourcennn - https://github.com/jarun/nnn/wiki/debugging-nnnIf the issue can be reproduced on master, log it.
Please provide the environment details. If that's missing, the issue will be closed without any cited reason.
If we need more information and there is no communication from the bug reporter within 7 days from the date of request, we will close the issue. If you have relevant information, resume discussion any time.
Please consider contributing the feature back to nnn yourself. Feel free to discuss in the ToDo list thread. We are more than happy to help.
--- PLEASE DELETE THIS LINE AND EVERYTHING ABOVE ---
x in the checkbox along with the information)[x] Operating System: Archlinux
[x] Window Manager: i3-gaps
[x] Terminal Emulator: gnome-terminal, st
[x] Shell: zsh
[ ] Custom desktop opener (if applicable):
[x] Program options used: None
[x] Configuration options set: None
[x] Issue exists on nnn master
Pre-steps:
nnn version 3.1.1 (latests on archlinux repository);Issue I'm having is described in steps above. What I was trying to accomplish was to open images with sxiv in nnn, and it is already as the system default application.
not sure if this is a local bug, but maybe I would need to setup a custom application on nnn for this. Any additional debugging steps would be nice.
See xdg-open(1) and xdg-mime(1). I have a very similar system and the images are opened in sxiv as expected.
I did some digging, it seems that xdg-open is defaulting to chromium for opening image/png. Does this mean I have to configure it?
Yes. Use xdg-mime聽default聽application聽mimetype(s) to set default openers for mimetypes. In your case application would be sxiv.desktop.
That did the trick. Thanks for the explanation.
Also thanks jarun for closing it quickly. Sorry for mistaking this for a bug.
No problem!
Most helpful comment
Yes. Use
xdg-mime聽default聽application聽mimetype(s)to set default openers for mimetypes. In your caseapplicationwould besxiv.desktop.