#wslg — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #wslg, aggregated by home.social.
-
this is a very specific nerdsnipe: did anyone manage to get the linux IM (the input method, not the instant messenger) working in linux gui apps run via wslg on windows without running a full linux graphic shell?
NOTE: i've tried most of what is findable on the web, including starting the IM engines manually and modifying wsl's weston implementation config, to no avail.
not being able to use the XCompose sequences in these apps is extremely annoying.
(the native windows apps are manageable via wincompose, and i dread for the day it stops working, because the last update was a while ago.)
-
With a recent #WSL #Ubuntu update, my #neovim started blowing up when I tried to paste in #neovim
I use #tmux so I don't care about all the #Windows clipboard hoo-ha others use. I just need cut and paste within tmux to work.
Unfortunately, because today in #WSLg you get Wayland but without the wayland server and commensurate socket, @neovim sees $WAYLAND_DISPLAY set, tries to run wl-copy and KABOOM.
Here's the bodge I'm using. If we detect WSL, we unset WAYLAND_DISPLAY so I can work but also add a 'wway' alias in case I want to futz around with Wayland GUI apps.
Under WSL, we KINDA have Wayland, but not really, and that blows up Neovim. Ungh. :)
Add an alias so if we actually WANT the pseudo wayland, we can haz.
if [[ $(uname -r | grep "microsoft") ]] then
unset WAYLAND_DISPLAY
alias wway='export WAYLAND_DISPLAY=wayland-0'
fi -
If you are working with #bevyengine or other #rustlang (particularly GUI) development, and you want to work in #wsl, check out the guides I have written in Bevy Cheatbook: https://bevy-cheatbook.github.io/platforms/windows/wsl2.html
I show two different ways of building and running your app from WSL: cross-compilation (which is actually not that hard to set up in Linux), letting you run #windows builds of your game from #wsl, or Microsoft's #WSLg, letting you run #linux builds of your game with limited performance.
Try it out!
-
Meh. After updating #WSL today, I started receiving RDP popups saying that the "identity of remote computer could not be verified" and asking whether I wanted to connect to it anyway. Seems to be this issue related #WSLg: https://github.com/microsoft/wslg/issues/997
There is a workaround of disabling WSLg which works for me: https://github.com/microsoft/WSL/issues/9347
-
100 days of code BASH edition
💻 Day 4 created my own system variable, made persistent within the .bashrc file.
[export hoy="$((date +"%H") | awk '{if ($1 < 12) print "morning"; else if ($1 >= 12 && 1 < 17) print "afternoon"; else if ($1 >= 17 && $1 < 20) print "evening"; else print "night";}')"] (OpenAI GPT-3 script with few corrections) Displays the time of day in morning/afternoon/evening/and night format!
#BASH #Linux #Kali #WSLg #100DasyOfCode #BashScript #Calendar #Time #bashrc
-
100 days of code BASH edition! :linux:
Day 3, expanding on the previous script adding more statements to display more system variables dealing with time formats and calendars.
#BASH #Linux #Kali #WSLg #100DasyOfCode #BashScript #Calendar #Time #TimeZones
-
100 days of code - BASH edition!
Day 2, using what I got from Open AI GTP-3, I expanded the script and made a few other statements to display additional system variables.
#BASH #Linux #Kali #WSLg #100DasyOfCode #OpenAi #GTP3 #BashScript
-
Bash scripting right? Can't live with it, can't live without it!
One of the things I never paid attention to was learning bash scripting. Maybe, it is because I work mostly in the Windows environment. Linux is not a required skill where I work but does come in handy when trying out things. Most of my Linux work has been done through a GUI and rarely use the command line for anything.
-
Twisted idea of the day: put Steam Deck's OS into WSL2.
(I just installed #WSL Debian on a new Windows 10 installation and discovered that #WSLg was, after all, made to work on Windows 10 as well. Whoever at Microsoft is responsible, thank you! I'm not big on Windows, but when I power on my desktop machine that i use for games, it'll be nice to be able to easily do Linuxish gamedev as well, without having to enable Secure Boot or buy a TPM2 machine apart from my Steam Deck.) -
Incidentally, #neovim-qt works GREAT under #wslg!
Anyone who doesn't see why anyone would want to run WSL isn't looking very hard :) The #linux desktop is seriously amazeballs but it can't be all things to all people, and IMO sharing all that beautiful 100% FLOSS GUI app love with the #windows world is a win for all parties concerned.
-
I've loved #wsl for a long time, the availability of #wslg on #windows10 and integration of #systemd only exponentially increase my fondness. kudos to the folks at #microsoft.
-
#WSL blues: Now that I've installed the MS Store WSL app with #WSLg... gedit won't run anymore. I get this Python traceback saying I don't have a hand in my cursor file. I'll have to find a solution sometime, like resetting my themes. But not tonight. There's also the problem I'm having with sound in Linux VLC.
But those and other problems will have to wait till later...
-
Next test: gnome-terminal. Instead of crashing like it did in old WSL2, it's now blazingly fast, maybe even faster than Windows Terminal (which admittedly is a really slick app I really love).
gedit, on the other hand, crashes. No problem though, as I prefer to invoke Notepad++ from WSL.
Next: installing VLC (obligatory app in Linux as well as Windows). Having problems with sound I'll have to deal with. But hey, it plays DVDs.
-
Launched Inkscape (I also have the Microsoft Store version). It runs just fine.
Launched Microsoft Edge Dev. Not quite as smooth as the Windows version, but that can be changed.
Launched Firefox. No smooth scrolling (yet) either, but also no screan tearing, a problem I've long had with Linux Firefox. Maybe it's the better GPU I have now.
I'm noticing smaller text in menus and stuff. Win10 settings doesn't affect WSL/Linux text size, it seems.
-
Update NVIDIA graphic driver and reboot.
I notice that in my Win10 start menu I have a lot of new icons with penguins in the corner, and the program names include "(Ubuntu)" (my original WSL app downloaded from the Store having been called "Ubuntu"). I see gVim, Firefox, MS Edge (Linux version), gedit, and of course BlockOut II, which I'll add to the Playnite frontend under that name.
Now I'll install a few more things.
-
Next test: Nautilus, which crashed before. With WSLg, it now complains about not having icons, but at least it doesn't crash. I'll have to download some icon sets.
Next test: gVim. It now loads in a GNOME frame, where before it looked almost perfectly Windows. I do have gnome-settings installed, so I can devote time later to fine tweaking. I look at the toolbar icon and, lo and behold, it has a little penguin icon in the corner.
-
Next, set DISPLAY = ":0" in $profile in Linux pwsh, then run blockout2. Successful.
Next step: remove XLaunch (which tuns vcXsrv with my chosen settings) out of my Startup directory. I can uninstall vcXsrv if I want because, now that I have WSLg with its native X and Wayland server, it's now useless.
Next step after that is to install a WSL-specific NVIDIA driver. Can't really run Linux and Android games without it.
-
The best part of Windows 11 is a revamped Windows Subsystem for Linux - Enlarge / Installing and using the Windows Subsystem for Linux is easie... - https://arstechnica.com/?p=1801283 #windowssubsystemforlinux #uncategorized #windows11 #ubuntu #win11 #tech #wslg #wsl
-
Mit dem "Windows Subsystem for Linux GUI" (WSLg) laufen auch grafische Linux-Anwendungen unter Windows – bei Bedarf sogar mit 3D-Beschleunigung. Windows Subsystem for Linux GUI startet grafische Linux-Programme -
"Daniel’s insight, perspective and extensive knowledge of Wayland and Weston were critical in helping us properly understand our choices and ensuring WSLg started on a solid foundation." Kudos Daniel! https://devblogs.microsoft.com/commandline/wslg-architecture/ #Wayland #OpenSource #WSLg #Windows #Linux