PortableApps.com wins big in the 2009 Community Choice Awards and hits 100 million app downloads!

[Fixed] Notepad++ 5.3.1, settings not saved

Submitted by NiMhurchu on April 6, 2009 - 5:02pm

Hi all,

Notepad++ 5.3.1 keeps forgetting my settings/preferences, e. g. language, "enable close button", "don't remember last opened files" etc.
I am running Vista 64 Bit.

The data\settings directory looks like that when Notepad++ is closed:
\Notepad++Portable\Data\settings\plugins
\Notepad++Portable\Data\settings\config.xml
\Notepad++Portable\Data\settings\Notepad++PortableSettings.ini
\Notepad++Portable\Data\settings\session.xml
\Notepad++Portable\Data\settings\shortcuts.xml
\Notepad++Portable\Data\settings\stylers.xml

... and that when Notepad++ is open:
\Notepad++Portable\Data\settings\plugins
\Notepad++Portable\Data\settings\Notepad++PortableSettings.ini

I tried to run N++ in administrator mode and choose the settings, but they were also forgotten.

How can I have N++ remember my settings?

Thanks alot,

Hans


( categories: )

Eric also complains about the

Eric also complains about the settings not saved in http://portableapps.com/node/17113.

After setting the config.xml file to read-only (which didn't work), I tried the following: opened Notepad++ and configured the settings the way I need them.
Then I copied
\Notepad++Portable\Data\settings\config.xml
to
\Notepad++Portable\App\DefaultData\settings\config.xml

As for the first tests (log off and on; put PC to hibernate mode), N++ now seems to remember the settings.

Best Regards,

Hans

Edit/Update 1: it doesn't. The next time I started N++ after a while, all settings were gone again.

Edit/Update 2: I created the following workaround now:
- copied config.xml and nativelang.xml into \Notepad++Portable\App\DefaultData\settings\
- created this batchfile in \Notepad++Portable\
copy .\App\DefaultData\settings\config.xml .\Data\settings\config.xml
copy .\App\DefaultData\settings\nativeLang.xml .\Data\settings\nativeLang.xml
start Notepad++Portable.exe

to have both files copied to the data directory at every startup.

Until now, this seems to work.

But whenever I change the settings, I would have to copy the xml files again. Is there a way to have N++ remember the settings itself?

Hi,

I've checked the code, and I haven't found the reason for your problem (some other bugs though).
Well, I'm running XP Pro, and Notepad++ Portable is keeping my settings. Maybe it's a Vista or 64Bit issue.

The reason for forgetting the language could be the new automatic language switching (since PAP 1.5).
Disable the AppLanguageSwitching and try again.

Fixed in 5.4.2

This should be fixed in 5.4.2. If it is not, please let us know.

Sometimes, the impossible can become possible, if you're awesome!

[Edit] Nevermind, I just

[Edit] Nevermind, I just checked the homepage (I normally just skip straight to the forums)... I'll just have to wait for it to hit the mirrors.

[Update] Got it downloaded and so far I haven't run into this issue yet. I mostly use NotePad++ by setting it as my default editor in WinSCPPortable for editing remote files, so I need session restore off. It was really annoying when it would save my sessions and then whenever I tried to open the app I got errors from all of the remote files which no longer existed because WinSCPPortable had already gotten rid of them. Great to see it fixed Smiling

Quamquam omniam nescio, nec nihil scio.

Still replacing settings...

Any ideas?

Exact Steps

We'll need more info from you as from other reports, the issue is resolved. So, what path do you have it installed to? What operating system are you using? How are you launching Notepad++ Portable?

Sometimes, the impossible can become possible, if you're awesome!

More info

This is WinXP. It's mounted as F:. This is v5.4.2 (definitely using the portable exe... it displays the portable logo during startup).

I continued messing with it and found if I replaced my "stylers.model.xml" and "config.model.xml"in "Notepad++Portable\App\Notepad++" with my customized config files, it works (for the moment). Looks like I'll need to update these when I config changes. Hope this helps if someone else is experiencing the same issue.

Don't Edit Model

The model files aren't supposed to be edited, they're replaced on the local machine when you upgrade Notepad++ local version as well since they're in the program directory instead of appdata.

You're supposed to edit stylers.xml and config.xml if you want to hand-customize anything... which you're really not supposed to do anyway.

I've confirmed that if you change styles as you're supposed to, through the Notepad++ interface, they are properly maintained between sessions.

Sometimes, the impossible can become possible, if you're awesome!

Possible source of the problem

[edited because I spoke too soon]