title: How to create a Linux GUI app short cut for WSL2 on Windows10?
body: <p>I have properly installed and setup WSL2. It works fine.
  I also setup X11 forwarding and X server (VcXsrv). I can launch GUI apps such like konsole or gvim or even google-chrome from a bash shell.</p>
  <p>Now I want to launch konsole by simply double clicking a short cut on the desktop without launching the bash command mode terminal. How should I do it?</p>
  <p>I tried running this in cmd:</p>
  <pre><code>&gt; wsl /usr/bin/konsole
  </code></pre>
  <p>and it reports:</p>
  <pre><code>qt.qpa.xcb: could not connect to display
  qt.qpa.plugin: Could not load the Qt platform plugin &quot;xcb&quot; in &quot;&quot; even though it was found.
  This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
  
  Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
  </code></pre>
  <p>I'm guessing it is because some X11 forwarding configurations were not properly setup, so I created a k.sh as follows:</p>
  <pre><code>#!/usr/bin/bash
  export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
  export LIBGL_ALWAYS_INDIRECT=1
  /usr/bin/konsole &amp;
  </code></pre>
  <p>The first two lines were the X11 settings in my .bashrc, the last line launches konsole.</p>
  <p>It works fine under bash environment; but when I ran</p>
  <pre><code>wsl k.sh
  </code></pre>
  <p>from windows cmd environment, it silently quitted without launching the konsole.</p>
  <p>I'm out of ideas. What should I do to directly launch konsole or other Linux GUI apps under windows without having to getting into bash?</p>
  <p>Thanks in advance.</p>