I can run Linux GUI applications via terminal, but can't run via wsl-windows-toolbar.
See original GitHub issueMy environment:
Windows 10 OS version: 2004 OS build: 20190.1000 (insider preview “dev”) WSL: Ubuntu-20.04.1 Linux kernel: 4.19.121 X-server: VcXsrv Ubuntu desktop environment: KDE plasma
Can you tell me, please, why Linux applications don’t run via wsl-toolbar, but they run through a terminal?
For reasons I don’t understand, I can’t run Linux GUI applications with the DISPLAY variable defined in the recommended way:
export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0.
Instead of this command, I use the IPv4 address: 192.168.0.107 as the value of the DISPLAY variable.
I found this value of the DISPLAY variable by a random choice method and the applications started to run.
In my .zshrc file I put the following lines of code — as recommended in the already closed question: https://github.com/cascadium/wsl-windows-toolbar-launcher/issues/4:
export DISPLAY=192.168.0.107:0.0
# If not running interactively, don't do anything (wsl-launcher)
[ -z "$PS1" ] && return
Still, applications are not launched via wsl-toolbar.
I can run Linux GUI applications through the terminal, but can’t via wsl-windows-toolbar.
Tell me, please, what other information do I need to give you so that you can determine what I did wrong?
Issue Analytics
- State:
- Created 3 years ago
- Comments:25 (12 by maintainers)
Top GitHub Comments
Hmm there must be something on down which is switching you back to .bashrc. My point was more when you run this command, does “Yes I am getting parsed 😃” get printed to make sure you’re getting that far.
Maybe we should just embrace it and lean into zsh (which is what i meant originally but I’m at a computer now 😃)
--rc-file ~/.zshrc
to your toolbar launcher script command (though that launches within bash so could cause issues, but is the least invasive option)--jinja-template-shell /path/to/template.j2
wheretemplate.j2
is a file with these contents:— I did:
wsl-windows-toolbar -J /home/haosmos/template.j2
After that, the menu creation process was started again and after creating the toolbar, the applications are not started again.
There is probably something wrong with the wsl, which prevents your script from being installed and working properly.
I think it’s better if I stop torturing you with my dilettantish questions. Please forgive me for taking up a lot of your time.
Thank you for your help, anyway!