sxiv: Error opening X display
itgou opened this issue · comments
I am in WSL, ubuntu 18.04
cat /proc/version
Linux version 4.19.128-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Tue Jun 23 12:58:10 UTC 2020
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
when I exec "sxiv xxx.png", in Windows Terminal, it display err:
sxiv: Error opening X display
also jpg format
I don't know where is wrong, please help.
Can you open other X (GUI) applications in WSL?
If not this may be of use
thank you very much for your link! I work it out!
but it didn't solve my trouble in wsl. because my target is displaying image embed into the ranger or nnn software, not pop a window to display(not convenient), so I can completely use wsl to develop in my job. I found this is impossible because wsl it self not support graphic now, so it's impossible to display the image via a software based on wsl.
so I drop the target at present, solved this by another way to browser images or other docs in windows explorer.
I write a simple sh script to open a explorer with current position in wsl shell, so I can quickly switch to windows to browser any file from wsl.
https://github.com/itgou/wslopen
thank you again!