Skip to content

Administrator mode wipes all user preferences #10302

@brenc

Description

@brenc

Description of the Issue

This popped up recently: when I switch to administrator mode, Notepad++ switches my user settings to administrator settings. Once I switch back to regular user mode, I have to configure my theme, word wrap, etc. all over again.

If I change settings while in administrator mode, then those settings are preserved when I switch back to a regular user. That's the workaround I'm using for now.

Steps to Reproduce the Issue

  1. In regular user mode, set a non-default style.
  2. Open a protected file. I have my Windows hosts file c:\windows\system32\drivers\etc\hosts open all the time as I edit it often.
  3. Try to edit and save it. Notepad++ will prompt to enable administrator mode.
  4. Open Notepad++ in administrator mode. It will open with administrator settings (for me it was everything set to defaults).
  5. Close and reopen in regular user mode. Settings will still be set to administrator settings.

Expected Behavior

For custom user settings to be preserved when switching between administrator mode and back.

Actual Behavior

User settings were permanently reset to administrator settings.

Debug Information

Notepad++ v8.1.2   (32-bit)
Build time : Jul 16 2021 - 01:56:21
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Command Line : -multiInst
Admin mode : ON
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit) 
OS Version : 2009
OS Build : 19043.1110
Current ANSI codepage : 1252
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll 

Metadata

Metadata

Assignees

No one assigned

    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