Hello
How do I make Notepad2 Portable?
That is, stop it from even making an ini, but let it still save my settings.
how do I do this?
please reply
thanks in advance,
Panarchy
New: KiCad (Mar 25, 2025), Platform 30.0.2 (Mar 27, 2025)
1,100+ portable packages, 1.1 billion downloads
Ad Free! Please donate today
The Notepad2.ini settings file is required but only in the app root directory. It's in short needed by the app but it will not save anywhere else
your friendly neighbourhood moderator Zach Thibeau
Can I stop it from having to save an ini?
But it's OSS so you can edit the code if you want. But why would you not want the ini? That's the only way it can save its settings. It is portable writting to the ini.
Release Team Member
How do I change the way it saves?
What does OSS mean?
OSS means Open Source Software. And you can't change the way it saves unless you change the program. Besides why would you want to change the way it saves?
Release Team Member
I understand this as, it saves it's settings within it's binary directory, so it's portable. No?
Yes it is portable. I use it. But I don't think It can be P.A.F. compliant because you can't redirect the .ini file used to save settings, I think that's what they're saying.
self.path = path if self.path == None else self.path
You can't redirect the ini, but you can copy it to the data directory when program closes and back to the app directory when you start it. There's a lot of programs here that uses this way to 'redirect' settings.
Like InfraRecorder. You just have to watch, because if the launcher crashes or the system goes down before it finishes, the settings file gets left behind in the App directory, and in InfraRecorder's case, that causes problems...
Actually guys it can be redirected
Notepad2.exe /F is for redirection it's documented
and it's been there since 2.1.1.9
your friendly neighbourhood moderator Zach Thibeau
Sweet!