practice / blog

For personal blogging
1 stars 0 forks source link

WSL에서 윈도우 이미지 뷰어 실행 #76

Open practice opened 4 years ago

practice commented 4 years ago

프로그램에서 이미지를 생성후 그 이미지를 뷰어로 보여줄 때, linux의 경우는 "eog" 프로그램을 실행하면 된다.

(sh/sh "eog" image-file)

WSL의 경우에는 아직 그래픽 지원이 되지 않기 때문에 위 방법은 실패. 대신 아래 방법을 이용.

(sh/sh "explorer.exe" (str "file://wsl$/Ubuntu" image-file))