Open fquinner opened 4 years ago
@fquinner,
Hey, thanks for the bug report. We'll take a look.
Hi @fquinner,
I can easily reproduce the behavior you describe and will work on a fix.
In the meantime, there might be a workaround depending on your workflow. The multipass copy-files
command will copy the .lnk
file correctly to the host Windows system. For example, on the host, you would enter something like:
$ multipass copy-files primary:path/to/lnk C:\Users\user\Desktop
Let us know if that is sufficient for you in the short term. Thanks!
Yeah I already have a workaround with samba mounting the drive instead which unblocked me until this was fixed but thanks for the other option!
I hit other issues though down the line in #1631 (the idea in this instance is to try and have like a "companion" VM that can act in a way similar to WSL2 but with its own fully virtualized kernel, so I don't want anonymous usernames). I'm sure that's drifting beyond the core goals of Multipass (hence marking that one as an enhancement), but it's how I was trying to use it nevertheless 😄 .
Describe the bug Since multipass seems to treat
.lnk
files like symlinks, it seems to be impossible to copy actual shortcut files for legitimate reasons (complete with starting directories, comments etc).To Reproduce
Grab the code from here: http://www.mamachine.org/mslink/index.en.html
Compile it:
gcc mslink.c -O2 -o mslink
Generate a .lnk file:
./mslink -l 'C:\Windows\system32\wscript.exe' -a '"C:\Users\fquinn\.config\wsl-windows-toolbar-launcher\metadata\WSL\silent-launcher.vbs"' -n "About" -o about.lnk
Copy this file to the Windows mount
Expected behavior I expected the
.lnk
to be treated like a regular file. A.lnk
isn't really the same as a symlink in Linux.Logs N/A
Additional info
multipass version
:1.3.0+win
multipass info --all
Name: advisable-gar State: Running IPv4: 172.20.155.131 Release: Ubuntu 20.04 LTS Image hash: d75d900f406d (Ubuntu 20.04 LTS) Load: 0.08 0.02 0.01 Disk usage: 1.3G out of 4.7G Memory usage: 532.9M out of 916.9M