![]() ![]() Note, my VcXsrv starts when windows starts by putting a shortcut to config.xlaunch in my C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.īy the way, Microsoft will provide a GUI for WSL in a few months, according to their blog So possibly this C:\Windows\System32\wsl.exe -distribution Ubuntu20 bash -c "export DISPLAY=localhost:0.0 & export LIBGL_ALWAYS_INDIRECT=1 & export XCURSOR_SIZE=16 & setsid xfce4-terminal -command=/bin/zsh" The first export display is similar to your localhost:0.0 so replace it or try mine. C:\Windows\System32\wsl.exe -distribution Ubuntu20 bash -c "export DISPLAY=$(ip route | awk ''):0 & export LIBGL_ALWAYS_INDIRECT=1 & export XCURSOR_SIZE=16 & setsid emacs" I'm launching Emacs 27.1 on WSL 2 with Ubuntu 20.10 on Windows 10 using this code which perhaps you can modify. Right click LaunchXFCE4 select Pin to Taskbar Enter all your launch sequences in the Target section Right click LaunchXFCE4 select Properties Right click on desktop then New then Shortcut then name it (LaunchXFCE4) Try putting all your commands in the Target section of the Shortcut link file. I'll share what works for me then you'll have to fiddle for your program. Yes, I think you can do what I do in one shortcut file. I count 3, three files cooperating to achieve this simple goal? Can I limit that to one or two without installing an external program? Once all of this is working, I can drag my shortcut to the taskbar and click on it there. wsl.exe apparently doesn't do that unless you run the login shell. ![]() Setting DISPLAY is apparently required, even though I set the DISPLAY environment in ~/.zshrc. Raymond.CC (one of the few solutions that didn't require installing a separate program for this!) and it contains: CreateObject("Wscript.Shell").Run "C:\Windows\System32\wsl.exe -u peter -exec /home/peter/bin/windows/startTerminal.sh",0,TrueĪnd startTerminal.sh contains: export DISPLAY=localhost:0.0. ![]() StartTerminal.vbs was inspired by from 10 Ways To Run Batch Files Silently And Hide The Console Window \\wsl$\Ubuntu-20.04\home\peter\bin\windows\startTerminal.vbs Here is what I got working: I created a windows shortcut on the Desktop with this target (all in one line, broken with newlines for readability here): C:\Windows\System32\wscript.exe Does anybody have a cleaner way of doing this? I don't want any DOS box/console/terminal other than the xfce4-terminal when I'm done. You'll of course have to add a mapping to your ~/.ideavimrc for each IntelliJ command you want to execute this way, but if you have a limited number you can set them up once and be done with it.I'm struggling a little to launch xfce4-terminal from my WSL installation under VcXsrv from a button on the Windows taskbar. Now you can type ^D for the Vim action scroll down, or ^Z ^D for the IntelliJ action Debug, without actually disabling IdeaVIM. In your ~/.ideavimrc, add the following mapping:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |