Files icon indicating copy to clipboard operation
Files copied to clipboard

Feature: Implement support for elevated operations

Open hez2010 opened this issue 2 years ago • 5 comments

What feature or improvement do you think would benefit Files?

After we remove the full trust process, we need to implement a new model for elevated operations. Users can already open Files as administrator to work around this issue today, but it's still better to have from the perspective of user experience.

Requirements

  • For elevated operations, use an elevated COM component to execute them
  • Possible blocker: https://github.com/microsoft/WindowsAppSDK/issues/3092

Files Version

2.3.58

Windows Version

Windows 11 25236

Comments

No response

hez2010 avatar Nov 07 '22 15:11 hez2010

Hello, I wanted to know when the administrator issues will be resolved because I still have to remove Files from the default file explorer and switch to the Windows one in order to delete or rename my protected folder, for example, and then switch back to Files as the default file explorer.

Lukiluc29 avatar May 08 '23 12:05 Lukiluc29

@Lukiluc29 It depends on the blocker issue https://github.com/microsoft/WindowsAppSDK/issues/3092.

hez2010 avatar May 08 '23 14:05 hez2010

@Lukiluc29Cela dépend du problème de blocage microsoft/WindowsAppSDK#3092 .

You don't have any more recent information on this bug as it has been present for a long time.

Lukiluc29 avatar May 08 '23 15:05 Lukiluc29

For reference here the changes I'd make to implement this once https://github.com/microsoft/WindowsAppSDK/issues/3092 is fixed: https://github.com/gave92/files-uwp/tree/admin_ops. Alternatively we could just loose hope in a fix and implement admin operations with a separate process (like we used to do) but it's annoying.

gave92 avatar Jun 25 '23 09:06 gave92

For reference here the changes I'd make to implement this once microsoft/WindowsAppSDK#3092 is fixed: https://github.com/gave92/files-uwp/tree/admin_ops. Alternatively we could just loose hope in a fix and implement admin operations with a separate process (like we used to do) but it's annoying.

And it is not possible to re-implement administrative operations as before with a separate process while waiting for https://github.com/microsoft/WindowsAppSDK/issues/3092 to be fixed? Because sometimes it's a bit annoying to always go back to the default explorer to open, delete, or rename a folder/file with administrator permissions without having to constantly run Files as an administrator.

Lukiluc29 avatar Jun 25 '23 09:06 Lukiluc29

This issue is resolved in our dev branch and will be included in the next release.

yaira2 avatar Jul 25 '23 15:07 yaira2