fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

#WSLg

0 posts0 participants0 posts today

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: bevy-cheatbook.github.io/platf

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!

bevy-cheatbook.github.ioWorking in WSL2 - Unofficial Bevy Cheat Book

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: github.com/microsoft/wslg/issu

There is a workaround of disabling WSLg which works for me: github.com/microsoft/WSL/issue

GitHub"The identity of the remote computer cannot be verified" popups · Issue #997 · microsoft/wslgBy bersbersbers

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

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.

My sister asked me about running an Ubuntu GUI software, and I directed her to .

Now it turns out she trying to run a complex web application for libraries- .

Hope she will succeed. I will show her a docker-compose solution.

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.

#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.

Continued thread

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.

Continued thread

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.