Skip to content

"Open as administrator" launches UWP apps without elevated permissions #605

@monster1612

Description

@monster1612

Describe the bug
when using Cairo to launch a UWP app (such as Windows Terminal or PowerShell Preview) via right-click -> "Open as administrator", no UAC prompt appears and the app is launched without elevated permissions.

Steps to reproduce

  1. install a UWP app (for example, Windows Terminal).
  2. add a shortcut for the app to Cairo via App Grabber or Quick Launch.
  3. right-click on the app shortcut, and then click "Open as administrator".
  4. no UAC prompt appears, and the program does not indicate it is running as administrator.

Expected behavior
a UAC prompt should appear for the app.

System information:

  • Windows version: Windows 11, Insider build 22000.51
  • Cairo version: 0.4.133.47321
  • 32-bit or 64-bit: 64-bit
  • In Cairo Settings > Advanced, is Cairo set as shell?: no.

Additional context
if launched via the dynamic desktop (or when the desktop is enabled in Cairo), the UAC prompt appears correctly when using right-click -> Run as administrator.

non-UWP apps, like DIscord, correctly trigger UAC prompts if launched via "Open as adminstrator".

Screenshots
N/A.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions