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

#WSL #WSLg

又研究了下 Android/iOS 的 Remote Desktop app / Windows app 用的应该是 MS-RDPETXT 扩展来输入中文(还发现 Android 的 Gboard 工作得并不正常
mstsc 在 Remote App / RAIL / Remote Application Integrated Locally 下也是用的这个
而 WSLg 也是 RAIL 模式,所以闭源的客户端部分不需要修改
服务端的 FreeRDP 不支持这协议,并且需要在 wslgd 里把它和 Wayland / ibus 的输入法连接起来
https://github.com/microsoft/wslg/issues/9#issuecomment-3694933170

#RDP #WSL #WSLg

IME (Input Method Editor) Support · Issue #9 · microsoft/wslg

WSLg should implement IME support for CJK locale scenarios. Currently, the WSLg & WSL architecture can support existing Linux IME facilities (e.g. ibus) as tested, however, manual configuration and...

GitHub

Thank you #wsl2 team at #msft

Today I discovered that you folks have been working hard on #wslg - I can now run graphical apps from #wezterm and everything works like a treat!

#WSLg#IMM32#TSF#IMEが 使えるわけではないので、日本の衰退を感じています (中国勢から文句言われないの?) #WSL #InputMethod

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

The #WSLg experience

#WSL #Windows

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!

Working 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: 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

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

Windows build number: 10.0.19044.2604 Your Distribution version: 22.04 Your WSL versions: WSL version: 1.1.3.0 Kernel version: 5.15.90.1 WSLg version: 1.0.49 MSRDC version: 1.2.3770 Direct3D versio...

GitHub

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!   

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