Comments (5)
You can get WSL version (1 or 2) of instance:
Launcher.exe get --wsl-version
from wsldl.
I meant to retrieve the version from the running Linux.
As I pointed in the question (made by myself) there is a not clear environment variable and the Kernel uname
options, but none are official nor reliable.
So I don't know if Launcher
can add environment variables before starting the WSL command line, adding that --wsl-version
in a new environment variable named WSL_VERSION
or similar.
If my C knowledge would not be so rusty I could set a PR, sorry :(
from wsldl.
ah, sorry, I understood.
You are right.
Guessing the WSL version from uname is not accurate.
Now, we don't provide wsl version information to environment variable.
from wsldl.
I think it is difficult to provide that function.
Users don't always launch using our launcher.
from wsldl.
Users don't always launch using our launcher.
Yes, ideally should be that Microsoft provides it (I probably will open an issue later).
Or you mean that not everyone that has the Launcher
use it as "executable" and they use the wsl
command?
UPDATE: SuperUser question has a good workaround, so feel free to close this.
from wsldl.
Related Issues (20)
- Import existing ext4 disk if present next to Arch.exe HOT 5
- (Suggestion) FastLZ support HOT 4
- Add option for custom filename in `wsldl backup`
- `wsldl backup` fails with `4294967295` exit code HOT 3
- WSL2 rootfs on BTRFS?
- Request: add option to run a single session as selected user HOT 1
- No release for over a year HOT 3
- something wrong with showhelp
- zstd support HOT 3
- open in user home directory by default when double clicking the exe HOT 3
- Windows Terminal Integration bootloop HOT 1
- Test on ARM failed HOT 3
- How do I restore from the backup? HOT 2
- Press any key to continue > Press enter to continue HOT 2
- Installation "with any rootfs" impossible on arm laptops without virtualization HOT 2
- Add AlmaLinux support
- Improve description of the project [-Documentation-] HOT 2
- [Question] How do you extract the root filesystem of a distro to use in wsldl? HOT 5
- ERROR:[2] Could not read registry key HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsldl.