Skip to content

Document API to get list of installed distros, their .exe files and base pathes. #3515

Closed

Description

wslconfig output is not documented now, and I can't find any official doc for HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss.

If I need to switch default distro, run some distro by name or browse its root fs, I need to rely on not documented things.

Please, document API

Activity

  1. benhillis commented on Aug 30, 2018

    @benhillis
    Member

    Biswapriyo Nath (@Biswa96) - Please do not take a dependency on our registry format, it is subject to change without notice.

  2. benhillis commented on Aug 30, 2018

    @benhillis
    Member

    Right, and I'm warning that approach is fraught with peril.

  3. throwable-one commented on Aug 30, 2018

    @throwable-one
    Author

    Ben Hillis (@benhillis) thank you. Do you have plans to provide official API instead?

    Here is one of my usecases: I want to browse root fs from Windows. I do not want to change it, only browse.

    The only stable way to do that is to run Linux app and so some IPC, but it seems to be overkill here.

    Is there any way to find BasePath for distro except registry Lxss record?

  4. therealkenc commented on Aug 30, 2018

    @therealkenc

    Here is one of my usecases: I want to browse root fs from Windows

    That isn't a use case. The reason you want/need to browse the lxss directory is the use case.

    Linux app and so some IPC

    You can use WebDAV which is agreed gross overkill but at least all the infrastructure already exists, so from a coding point it isn't too bad. Depends on your... use case.

    [FWIW I did a PoC thing using the above in early 2017 for which I had grand plans, but shelved it in the hopes that #1524 (UserVoice) was going to work out. Unfortunately it didn't.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions