wslg: WSLg applications requiring root do not run from shortcuts

Environment

Edition	Windows 11 Pro Insider Preview
Version	Dev
Installed on	‎11/‎30/‎2021
OS build	22504.1010
Experience	Windows Feature Experience Pack 1000.22504.1010.0

Currently in ArchWSL but known to exist in all other distributions

WSLg 1.0.27 Pre

Steps to reproduce

I have attached all of the WSLg log files but while these may provide some info they do not have the actual issue that occurred in them, the only error that should have been thrown is this: Error getting authority: Error initializing authority: Could not connect: No such file or directory And simple permissions errors such as that are not logged

Expected behavior

I am not technically sure that this is a bug, it may be a missing feature instead,I’m not sure whether it is intended that starting WSLg apps from the start menu will not work if the app requires admin privileges and the default user is not root. Either way the correct behavior would be a sudo password popup after clicking the icon and then the app to open if the password is entered correctly or an incorrect password error and a retry popup for 3 attempts before failing if the password is incorrect.

Actual behavior

Nothing visible occurs when a shortcut in windows start for a WSLg Linux app is clicked aside from the MS click animation. No events are logged and I have not found any lasting effect of any sort on the system, you would not be able to tell that this happened. I have checked Event Viewer and there are no notable log entries, just the standard stuff, and it does not change when I repeat the error.

weston.log stderr.log pulseaudio.log versions.txt

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

hey @stevemagruder, delete everything after “Debian” and add “-u root synaptic” it causes it to be logged in as root, so it starts synaptic as root as well, so for apps that require root, add the argument -u root, and then the application name.