Okay, here is the strange behavior. I created myself WSL shortcuts in my taskbar to be able to open for instance the gnome-terminal
linux graphical app from the shortcut CTRL+ALT+T. The shortcut worked the day I created it, but it doesn't work anymore.
Here is the command of the shortcut located in C:\Users\guill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Ubuntu
file: wslg ~ gnome-terminal
The app will or will not open in these situations depending on wheter or not I have already opened it a first time from the cmd wsl:
- Once I'm logged in to Windows and that my computer had sufficient time to boot and open the startup applications, the app won't open at this moment with the shortcut.
- Then, if I first open cmd.exe and then type in
wsl
to get into wsl, then I have wsl opened in the background. At this moment, trying the shortcut still won't work. - Then, if I type in
gnome-terminal
in the wsl command-line session opened from the cmd, the gnome terminal will properly open. If I then do the keyboard shortcut, the gnome terminal will open.
Note that in the text above, each time that I say that I pressed the keyboard shortcut, it has the same result as trying to open the application from the pinned icon in the taskbar, and vice-versa. The one with the wslg ~ gnome-terminal
command in the start menu folder.
So what's up with that? It seems that the graphical apps needs to be opened at least one time before I'm able to open them from the start menu or keyboard shortcut. I'd like WSL to always open at startup. I'd also like WSL to always be ready to open apps from shortcuts. I don't know what to do at this point.
I am considering installing Linux again on this computer. WSL doesn't meet my expectations right now. I am on Windows 11.
Thanks!