Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files is running as administrator - Due to platform limitations, drag and drop isn't available when running Files as administrator. #14498

Closed
MATTPASSIONFORTECH opened this issue Jan 20, 2024 · 8 comments
Labels
needs - additional info Needs more information from the reporter

Comments

@MATTPASSIONFORTECH
Copy link

Description

"I keep getting an error message whenever I try to open Files on my computer. This is preventing me from being able to drag and drop files, and it's becoming quite frustrating. Does anyone know of a workaround or a way to fix this bug? I want to find a solution to fix this issue. Keep in mind that using the Microsoft Store version of Files. Update: The same issues occur with Files Stable (Classic installer).

Steps To Reproduce

How do I fix this?

Requirements

  • e.g. Fix crash that occurs when...

Files Version

3.1.1.0

Windows Version

23H2 22631.3078

Log File

Files.bug.mp4
@Josh65-2201
Copy link
Member

Thanks for the report. Make sure UAC (User Account Control) is not set to never notify.

@Josh65-2201 Josh65-2201 added the needs - additional info Needs more information from the reporter label Jan 20, 2024
@yaira2
Copy link
Member

yaira2 commented Jan 24, 2024

Thank you for your feedback, this is a limitation in WinAppSdk where drag & drop causes a crash when the app is running as admin. You can work around this limitation by re-enabling UAC on your device.

@yaira2 yaira2 closed this as completed Jan 24, 2024
@ThisIsDelicious
Copy link

Thank you for your feedback, this is a limitation in WinAppSdk where drag & drop causes a crash when the app is running as admin. You can work around this limitation by re-enabling UAC on your device.

There has to be a better way to prevent Files from running as Administrator. Enabling UAC is quite extreme. I'm still looking for a solution.

@Josh65-2201
Copy link
Member

There isn't, With UAC off Windows will open everything as admin, same as if you right clicked > run as admin

@ThisIsDelicious
Copy link

There isn't, With UAC off Windows will open everything as admin, same as if you right clicked > run as admin

That's unfortunate. Thanks for the info, I wasn't aware.

@yaira2
Copy link
Member

yaira2 commented May 1, 2024

Microsoft recently announced they are working on a fix for drag and dropping tabs. This is certainly a step in the right direction, and it gives us hope that it will be fixed for other drag & drop scenarios as well.

@Iomegan
Copy link

Iomegan commented Nov 4, 2024

Months have passed, but looks like the bug still persists. :(

@0x5bfa
Copy link
Member

0x5bfa commented Nov 4, 2024

FWIW, when your user account is part of Administrators group (it's by default from OOBE) and UAC is completely disabled, a certain Windows drag and drop handler still misunderstands that the app is running as privileged process token.

We already worked on the preparation to be able to enjoy that fix/update Microsoft made but there's an increase crash in that version and we're waiting for further updates. I think it's almost there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs - additional info Needs more information from the reporter
Projects
None yet
Development

No branches or pull requests

6 participants