aseering / wsl_gui_autoinstall

Automatically install X Windows and PulseAudio within a WSL (Bash on Windows on Linux) environment
MIT License
84 stars 26 forks source link

tries to install VcXsrv.lnk to a non-existent location #9

Open AlisterH opened 7 years ago

AlisterH commented 7 years ago

Sorry, I've lost the actual error message after a problem filing a ticket, but it tries to install a VcXsrv.lnk into C:\Users\alistair\Start Menu\Programs\Startup\, but this location does not exist on my system. I only have a start menu folder in these places:

C:\ProgramData\Microsoft\Windows\Start Menu
C:\Users\alistair\AppData\Roaming\Microsoft\Windows\Start Menu
C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu
C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu
C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\Microsoft\Windows\Start Menu
C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\Windows\Start Menu
C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu
aseering commented 7 years ago

Hm, interesting. The script tries to place the link in %userprofile%\Start Menu\Programs\Startup. Perhaps there's a more-appropriate environment variable that it could be using? The link should go into the per-user folder (for your user account) whose contents are executed on login. In your case, I'm guessing that might be C:\Users\alistair\AppData\Roaming\Microsoft\Windows\Start Menu?

AlisterH commented 7 years ago

Yes, start_pulseaudio.vbe was placed in C:\Users\alistair\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup, so I put VcXsrv.lnk there as well. The only environment variable I can see that might help is %APPDATA%, which is set to C:\Users\alistair\AppData\Roaming

AlisterH commented 7 years ago

FWIW C:\Users\alistair\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup is also where windows explorer opens if I do Start>Run>shell:startup