Monthly Archives: January 2019

Citrix always change default keyboard / input layout after login

I’m using Chinese input layout in my VDI, so usually I delete all other input layout.
And I found that every time when I login to my VDI via company’s laptop, my VDI’s default keyboard input layout will be changed to English (US), and I have to remove it again and again.

At beginning I thought it’s a windows bug, so I spent lots of time to check MS article to fix the problem…No fix…

And today I found that this issue is caused by Citrix not by Windows… Citrix introduced a new feature named “keyboard layout synchronization” in version 7.16. You can refer to below link:

https://docs.citrix.com/en-us/citrix-workspace-app-for-windows/configure.html#keyboard-layout-and-language-bar

To disable this feature,

Disable Firefox 65+ urlbar/address bar suggestion popups

According to https://bugzilla.mozilla.org/show_bug.cgi?id=1502392, browser.urlbar.autocomplete.enabled pref is no more used in Firefox 65.
So you can’t set below pref to false to disable the annoying Firefox address bar/url bar popups.

The only way to disable the popup is to use userChrome.css to control Firefox User interface.
Add below line to userChrome.css, done.

Powershell comparison: $null on the left

When I write powershell scripts, I always use below method to check whether variable is null or not.

When I use VScode, VScode suggested me to put $null to left. Why?

Check below example:

So, the right way to compare is always put $null on the left side.