sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

[Windows platform only] access denied on save - offer to elevate permissions

Open keith-hall opened this issue 9 years ago • 19 comments

Summary

Sublime Text doesn't show the UAC prompt to elevate permissions for saving a file in a restricted folder on Windows.

Steps to reproduce

  1. On Windows, with User Account Control enabled, open a file in a restricted location, like (a subfolder of) C:\Program Files.
  2. Make any change to the file
  3. Save it

Expected behavior

ST3 should invoke a UAC dialog to elevate permissions so that the file can be saved.

Actual behavior

error: Unable to save C:\Program Files (x86)... Error: Access is denied.

Environment

  • Operating system and version:
    • [X] Windows 7 x64
    • [ ] Mac OS ...
    • [ ] Linux ...
  • Sublime Text:
    • Build 3113

Additional notes: It works on Linux, with it's equivalent of UAC elevation.

keith-hall avatar May 11 '16 13:05 keith-hall