Describe the bug
Hello, in WSL(Windows Subsystem for Linux) version 1 It doesn't work exactly because of usage of memfd and this is WSL issue actually, but I wanted to say it anyway.
But in WSL version 2 there is a bug but I'm not sure It's because of WSL or Foliate. A X Server working on Windows and I can open GUI applications. Foilate opens fine but when I try to open a book this message shown in terminal screen,
(WebKitWebProcess:2): Gtk-WARNING **: 14:00:09.857: cannot open display: 172.21.96.1:0Unable to init server: Could not connect: Connection refused
I tried to install older versions of foliate and It seems version 2.1.1 works fine.
To Reproduce
Steps to reproduce the behavior:
Enable WSL and Virtual Machine Platform from Windows Features,
Install WSL2 update from https://docs.microsoft.com/en-us/windows/wsl/install-win10
In Powershell type wsl set-default-version 2 to enable WSL2.
Install Ubuntu from Microsoft Store
On Windows install VcXsrv from https://sourceforge.net/projects/vcxsrv/
At the launch of XLaunch(VcXSrv) check "Disable access control" at Extra Options page.
When you are on Ubuntu,
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
and launch the Foliate and try to open Catalog or a book.
Expected behavior
Books should open.
Screenshots
Working version,
Version:
Foliate version: After 2.1.1
OS/Distribution and version: Ubuntu 20.04 on WSL2
Desktop environment: [e.g. GNOME 3.36]
Installation method: Compilation from source and .deb package
Describe the bug Hello, in WSL(Windows Subsystem for Linux) version 1 It doesn't work exactly because of usage of memfd and this is WSL issue actually, but I wanted to say it anyway.
But in WSL version 2 there is a bug but I'm not sure It's because of WSL or Foliate. A X Server working on Windows and I can open GUI applications. Foilate opens fine but when I try to open a book this message shown in terminal screen,
(WebKitWebProcess:2): Gtk-WARNING **: 14:00:09.857: cannot open display: 172.21.96.1:0
Unable to init server: Could not connect: Connection refused
I tried to install older versions of foliate and It seems version 2.1.1 works fine.
To Reproduce Steps to reproduce the behavior: Enable WSL and Virtual Machine Platform from Windows Features, Install WSL2 update from https://docs.microsoft.com/en-us/windows/wsl/install-win10 In Powershell type
wsl set-default-version 2
to enable WSL2. Install Ubuntu from Microsoft Store On Windows install VcXsrv from https://sourceforge.net/projects/vcxsrv/ At the launch of XLaunch(VcXSrv) check "Disable access control" at Extra Options page. When you are on Ubuntu,export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
and launch the Foliate and try to open Catalog or a book.Expected behavior Books should open.
Screenshots
Working version,
Version: