[Suggestion] Add "read-only" mode via command line parameter

Discussion related to "Everything" 1.5 Alpha.
Post Reply
GSD
Posts: 30
Joined: Fri Apr 28, 2023 12:59 pm

[Suggestion] Add "read-only" mode via command line parameter

Post by GSD »

Code: Select all

Everything64.exe -ro -instance "EXAMPLE" -config Test-config.ini
When using the "-ro" parameter, Everything would read the appropriate settings/filters/bookmarks etc. files, be they the default ones, the ones implied by "-instance" or the ones manually specified via "-config" et.al., but would keep and modify everything in memory, never writing any changes back to said files. This would also implicitly trigger "-no-db".

This would effectively allow the creation of temporary instances based on already defined instances or the default config as templates. Unless I misunderstand the way Everything instancing works, one could have an unlimited numbar of these temporary instances running at the same time.

Thank you!
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: [Suggestion] Add "read-only" mode via command line parameter

Post by therube »

Code: Select all

	-read-only
		Loads the database in read-only mode.
Note that -read-only deals with updates to the .db itself. There are other ancillary files that do update.

Code: Select all

	-no-db
		Do not save to or load from the "Everything" database file.
GSD
Posts: 30
Joined: Fri Apr 28, 2023 12:59 pm

Re: [Suggestion] Add "read-only" mode via command line parameter

Post by GSD »

therube wrote: Thu May 25, 2023 7:27 pm There are other ancillary files that do update.
Exactly. The read-only mode I'm suggesting would prevent Everyhing from updating/creating any and all files. And it would implicitly trigger "-no-db".
Post Reply