Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

sxiv: Error opening X display #432

Open
itgou opened this issue Jan 10, 2021 · 2 comments
Open

sxiv: Error opening X display #432

itgou opened this issue Jan 10, 2021 · 2 comments

Comments

@itgou
Copy link

itgou commented Jan 10, 2021

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.

@jaredforrest
Copy link

Can you open other X (GUI) applications in WSL?
If not this may be of use

@itgou
Copy link
Author

itgou commented Jan 18, 2021

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants