Skip to content

Commit

Permalink
support DISTROGUID environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
isanych committed May 21, 2018
1 parent eac0820 commit d51470c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/wslbridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,13 @@ int main(int argc, char *argv[]) {
enum class TtyRequest { Auto, Yes, No, Force } ttyRequest = TtyRequest::Auto;
enum class LoginMode { Auto, Yes, No } loginMode = LoginMode::Auto;

{
const char *value = getenv("DISTROGUID");
if (value != nullptr) {
distroGuid = canonicalGuid(value);
}
}

int debugFork = 0;
int c = 0;
if (argv[0][0] == '-') {
Expand Down

0 comments on commit d51470c

Please sign in to comment.