ERROR OF SAVING SESSION XML FILE, when closing program
When I try to exit the program, I always get the message in the subject line, It doesn’t save session.xml and of course when I re-open NPP, it hasn’t saved and can’t find my previous session. It opens empty.
I have Remember current Session checked.
I have a laptop and a desktop and everything is fine in the laptop, win10Home. It used to work in the desktop, 10Pro, but stopped. I unstalled and reinstalled. In both cases it’s installed to C:\Programs, and C:\Programs\NotepadPP is a Read-Only directory in both cases.
But in the box that works, under Security/Permissions in the box that works, everything is allowed for authenticated users except full control and special permissions.
Under Permissions in the box that does not work, modify and write are not permitted, even for authenticated users. Is this the difference??. (The rest is the same.)
So I checked Modify and Write, in the Security tab of the Properties of the directory, but I still get the same message.
The Backup path was set during installation to C:\Programs\NotepadPP\Backup, but that directory does not exist!!
This file does not exist in the problem computer:
What should I do next. :-)
Are you using a “local configuration” (
c:\Programs\NotepadPP\doLocalConf.xmlexists), or does it use the standard
%AppData%\Notepad++for settings, or do you have a “cloud location” or
-settingsDirdefined? (The easiest way to answer is to show us ?-menu’s Debug Info)
Under Permissions in the box that does not work, modify and write are not permitted, even for authenticated users. Is this the difference?
If you are using a “local configuration” and you don’t have write permission in your application directory, then it cannot write the session file to the application directory, so obviously it’s going to have an error to save the session file.
@PeterJones Thak you for this useful information…