Skip to content

Commit 95ac5d1

Browse files
committed
Start wsl distro before opening file manager
1 parent e5ab980 commit 95ac5d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manager.py

+2
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,7 @@ def alternate_conf():
16181618
def browse_wsl():
16191619
nonlocal machine
16201620
#chooser(canvas, "Alternate Shell Display Export", ["Bash (choose if unsure)", "Zsh", "Fish"], icon_override="shell")
1621+
v = subprocess.getoutput(rf'wsl -d {machine} echo "hi"')
16211622
subprocess.Popen(rf'explorer.exe "\\wsl$\{machine}"', shell=True)# + str(machine))
16221623

16231624
def indirect_conf():
@@ -3677,6 +3678,7 @@ def update_running():
36773678
def browse_wsl():
36783679
machine = choose_machine()
36793680
if machine != None:
3681+
v = subprocess.getoutput(rf'wsl -d {machine} echo "hi"')
36803682
subprocess.Popen(rf'explorer.exe "\\wsl$\{machine}"', shell=True)# + str(machine))
36813683

36823684
def shells():

0 commit comments

Comments
 (0)