wslusc creates bogus .lnk file that tries to run spotify
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wslu (Ubuntu) |
In Progress
|
Medium
|
Patrick Wu |
Bug Description
Created link includes a lot of nonsense such as microsoft edge, spotify, gamebar. None of that nonsense is in my windoze or wsl/ubuntu enviroment variables, either. And I checked for malware recently and there is nothing but "netcat" which was deliberately installed. Spotify is installed because it came with the machine.
wsl sudo apt-get install xplanet
wsl sudo apt-get install wslu
wsl sudo apt-get install liblnk-utils
wsl wslusc -gui /usr/bin/xplanet
wsl dpkg -l wslu
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii wslu 2.3.2-0ubunt all collection of utilities for the W
wsl wslsys
Release Install Date: 0x5e36ca7a
Branch: 19h1_release
Build: 18363
Full Build: 18362.1.
Uptime: 0d 0h 0m
Linux Release: Ubuntu 18.04.1 LTS
Linux Kernel: Linux 4.4.0-18362-
Packages Count: 1780
wsl lnkinfo /mnt/c/
lnkinfo 20171101
Windows Shortcut information:
Contains a link target identifier
Contains a relative path string
Contains a command line arguments string
Contains an icon location string
Contains an icon location block
Link information:
Creation time : Mar 19, 2019 04:45:02.866733500 UTC
Access time : Feb 02, 2020 14:43:27.923781000 UTC
File size : 165888 bytes
Icon index : 0
Show Window value : 0x00028800
Hot Key value : 34816
File attribute flags : 0x00000020
Drive type : Fixed (3)
Drive serial number : 0xf8897cc4
Volume label :
Local path : C:\Windows\
Relative path : ..\..\.
t.exe
Command line arguments : C:\\Users\
sers\\Hp\
mnt\\c\
ge_8wekyb3d8bbw
ft\\WindowsApps
ias.exe?
ge.exe?
\\mnt\\
sic_zpdnekdrzre
/usr/bin/xplanet"
Icon location : %SystemDrive%
Link target identifier:
Shell item list
Shell item: 1
Shell item: 2
Shell item: 3
Extension block: 1
Shell item: 4
Extension block: 1
Shell item: 5
Extension block: 1
Distributed link tracking data:
Machine identifier : desktop-a08lnj3
Droid volume identifier : 935b88e6-
Droid file identifier : cd464b87-
Birth droid volume identifier : 935b88e6-
Birth droid file identifier : cd464b87-
Thank you for the report.
From the look of it, it is a badly generated ~/.config/ wslu/exec/ baseexec. Right now we have a fix to solve this problem, but only available for Ubuntu 20.04 LTS for now. It will be available to bionic (and also xenial) very soon.
For now, you can edit thi file manually to `/mnt/c/Users/<Your Windows User Folder> /AppData/ Local/Microsoft /WindowsApps/ CanonicalGroupL imited. Ubuntu18. 04onWindows_ 79rhkp1fndgsc/ ubuntu1804. exe` for "Ubuntu 18.04 LTS" or `/mnt/c/Users/<Your Windows User Folder> /AppData/ Local/Microsoft /WindowsApps/ CanonicalGroupL imited. UbuntuonWindows _79rhkp1fndgsc/ ubuntu. exe` for "Ubuntu".
Also thanks to you, I discovered another bug affecting the latest fix.