JaneaSystems / PowerToys-DevProjects

0 stars 0 forks source link

Launching Terminal as Admin throws error #80

Open plante-msft opened 1 month ago

plante-msft commented 1 month ago

Layout is set up to launch terminal as admin, but when I launch the layout, it gives me this error regardless of if AppLayouts is elevated or not.

Image

Expected Behaviour

When launching any project that has apps with Admin selected, I expect to see a UAC for each app.

App Layout JSON: { "id": "{6D8971D0-422D-4E1F-B305-87CED812208A}", "name": "Admin Test", "creation-time": 1723589274, "last-launched-time": 1723589316, "is-shortcut-needed": false, "move-existing-windows": false, "monitor-configuration": [ { "id": "SHP1509", "instance-id": "4&218c0622&0&UID8388688", "monitor-number": 1, "dpi": 144, "monitor-rect-dpi-aware": { "top": 0, "left": 0, "width": 2400, "height": 1600 }, "monitor-rect-dpi-unaware": { "top": 0, "left": 0, "width": 1600, "height": 1067 } } ], "applications": [ { "application": "Terminal", "application-path": "C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.20.11781.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe", "title": "pwsh in connorplante", "package-full-name": "Microsoft.WindowsTerminal_1.20.11781.0_x64__8wekyb3d8bbwe", "command-line-arguments": "", "is-elevated": true, "can-launch-elevated": true, "minimized": false, "maximized": false, "position": { "X": 385, "Y": 207, "width": 1088, "height": 604 }, "monitor": 1 } ] }

@SeraphimaZykova the combobox for selecting Launch as Admin is also disabled after the layout is first saved. Is this intentional? I know we disable this for apps that cannot be launched as admin, but since I could select this option earlier, shouldn't I be able to deselect it?

Image