# Makie - Your question here

**URL:** <https://discourse.julialang.org/t/makie-your-question-here/139670>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [September 25, 2026, 11:47am UTC](https://discourse.julialang.org/t/makie-your-question-here/139670 "2026-09-25T11:47:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aasdelat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aasdelat/32/45268_2.png) [@aasdelat](https://discourse.julialang.org/u/aasdelat)\
**Post date:** [September 25, 2026, 11:47am UTC](https://discourse.julialang.org/t/makie-your-question-here/139670/1 "2026-09-25T11:47:08Z")

</div>

I want to develop a Makie application that can be started as a web page or as a desktop application. The main script is agnostic as to it is in a web page or in a desktop apllication. In the first case, a scrip using WGLMakie is launched, that calls the main script, and, in the second case, a script using GLMakie is launched, that calls the same main script.  
The application has several pages. The first one is a login screen in which a connect button closes this screen and opens a “shopping cart” screen, where the user selects what data he wants to plot. On the top of this page, there are three buttons: graphics, download and close session. The graphics button brings to the shopping cart page (where we are now), the download to a download data screen, and the close session, brings to the login screen again.  
In the shopping cart screen, once the user clicks on a visualize button, the shopping cart screen closes and a screen with the graphics opens. This graphics page/screen has, not only the graphics, but also a lot of controls to select time period and other visualization options.  
I know that I can do this in WGLMakie bay navigating through pages, and in GLMakie by closing the present window and opening another window. But:

- The buttons that close the present window and open another one:

- Prehaps the cleanup to be made when closing a screen or leaving a web page, has to be different. This brakes the compatibility, too.

- Perhaps I have to take care of orphan listeners (ObservavbleFuncions) in different ways depending on if I am in the web or in the desktop version.

- Any other?

So, what is the most standard solution for this problem? Is there a way to detect if I am in WGLMakie or GLMakie from inside the main (agnostic) script?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![haakon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/haakon/32/42692_2.png) [@haakon](https://discourse.julialang.org/u/haakon)\
**Post date:** [September 25, 2026, 10:06pm UTC](https://discourse.julialang.org/t/makie-your-question-here/139670/2 "2026-09-25T22:06:33Z")

</div>

Would this work for you?

```julia-repl
julia> using CairoMakie
julia> Makie.current_backend()
CairoMakie

```

Then based on the output, you could select which variant of `display` you use.
