Giter VIP home page Giter VIP logo

Comments (6)

vlaaad avatar vlaaad commented on August 24, 2024

Hi @crispinb!

AFAIK, Reveal can't work in WSL because it's a headless environment without access to the display.
There is vcxsrv project that aims to bring display support into WSL by emulating X server, but I was hesitant to try it because it has bugs causing hard reboot, so I personally use Reveal in plain Windows environment, without WSL.

If you can find a way to run it in WSL, please share it!

from reveal.

vlaaad avatar vlaaad commented on August 24, 2024

P.S. Powershell command for trying out Reveal looks like this:

clj -Sdeps "{:deps {vlaaad/reveal {:mvn/version """"1.0.130""""}}}" -m vlaaad.reveal repl

And you can find clj setup instructions for powershell here: https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows

from reveal.

crispinb avatar crispinb commented on August 24, 2024

Hey @vlaaad - thanks, I may try the powershell route, though I'm a reluctant Windows user and mostly stay on the linux side of the divide for dev purposes.

Are you sure though that that error has anything to do with the display? I have no problem running other X applications (I use https://x410.dev/ rather than vcxsrv). It only involves setting the DISPLAY env var correctly and opening up the windows firewall. Even pretty fancy things like IntelliJ work fine.

Anyway I'll have a poke around when I have a chance and see what I can find.

from reveal.

vlaaad avatar vlaaad commented on August 24, 2024

Woah, I had no idea Reveal might work from WSL... I reproduced your issue and found a fix that worked for me:

sudo apt install libgtk-3-0  

UI looks very blurry though...

from reveal.

crispinb avatar crispinb commented on August 24, 2024

Nice, the libgtk install worked for me. Thanks.

I found that with the default settings the UI is scaled correctly (and fonts are sharp) on my (old, low dpi) external monitor. But minuscule on my laptop's hidpi monitor. Setting the GDK_SCALE env var to 2 fixes the internal monitor scaling for me.

x410 also has its own 'dpi scaling' feature, but I find that does blur fonts - it works best for me to just scale up using the env var appropriate for a given ui toolkit.

from reveal.

vlaaad avatar vlaaad commented on August 24, 2024

GDK_SCALE worked wonders! I expanded windows-related site section with WSL instructions.

from reveal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.