Page 1 of 2

should a fresh instance touch settings data AT ALL? [No]

Posted: 26 Jan 2015 18:39
by bdeshi
[er, this is not technically a bug report...]

Should a ::fresh XY be allowed save settings at all and pollute (or rather clean up) the setup?
File->Exit (Saving) option is greyed out, but neither is Save settings nor Settings special nor Save settings toolbar btn.
What if you open a ::fresh from XY, then close XY, and save settings in the fresh

Also a ::fresh automatically touches the default thumbnail cache folder.
More upsettingsly, Tabsets->Save overwrites the default "1" and "2" panes (I learned to skirt these folders, but not before undoing many x many hours of tabset editing :oops: )

Perhaps a fresh instance should have <xydata> internally defined as %TEMP%\Data

Re: should a fresh instance touch settings data AT ALL?

Posted: 26 Jan 2015 19:27
by Filehero
SammaySarkar wrote:Should a ::fresh XY be allowed save settings at all and pollute (or rather clean up) the setup?
Nope.

I always thought the impl is some in-memory only solution.

FH

Re: should a fresh instance touch settings data AT ALL?

Posted: 26 Jan 2015 22:36
by PeterH
Just had a look: the setting pathes (say: appdata) for the fresh instance are the same as of the main XY :arrow: I wouldn't have expected that.

Wouldn't it at least be better for XY to create a special appdata path for the fresh instance? Be it \fresh\ in appdata or alike?
Then you could save settings without a risk. Maybe better (for comparison, copy, or whatever) than completely disallow it?

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 01:19
by Enternal
I like the idea of a fresh run not touching the main data files and instead save the settings in a temp location. Generally, when you run a fresh; install, it's for a quick check for bug testing. However, there are many times when you require saving the profile so that you can test deeper bugs or test features and scripting. So in those cases, a fresh; makes no sense and you end up having to copy XYplorer.exe somewhere else and run it from there. And this is something I do very frequent enough that before this thread, I was contemplating whether I should just write a quick script to do the whole process for me.

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 10:54
by admin
If you want an alternative/new app data path you can do that using the /ini switch.

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 11:00
by PeterH
admin wrote:If you want an alternative/new app data path you can do that using the /ini switch.
I'm afraid this topic was at first for accidently writing settings of "Fresh" to the productive folder? This would be a general thing.

You don't change /ini before doing something by accident 8)

(I hope I met the intentions of SammaySarkar :?: )

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 11:05
by bdeshi
Yes, but we're talking about the default behavior of just ::fresh or /fresh

Stop press!!!
I'm afraid this topic was at first for accidently writing settings of "Fresh" to the productive folder? This would be a general thing.

You don't change /ini before doing something by accident 8)

(I hope I met the intentions of SammaySarkar :?: )
Exactly. Most users probably think ::fresh won't alter their setup, and are liable to have a nasty surprise.

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 11:22
by admin
Most users will never use Fresh. It's only used for debugging on explicit advise here in the forum.

If you check the Help you will see that there is no word about not touching any settings.

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 12:02
by bdeshi
...This can be useful for isolating any issues under factory defaults conditions and thus can help the analysis.
What analysis can be done if settings are defaulted when analysing?

The conflicting perspectives of purpose arises because a fresh instance has Exit (without Saving) in place of the Normal Exit (Saving). Seeing this, I can think, "Oh ,so this is how a factory default XY works should behave. Good to know it wont replace my setup when quitting".
In keeping with this feature all other cmds that can save settings ought be disabled, at least Save Settings. It's too risky having this in top level of the menu

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 12:47
by admin
OK, OK, before you all freak out:

Code: Select all

    * Fresh Configuration: Fresh mode (originally introduced v12.40.0212 - 
      2013-05-27 12:50) now sets the App Data Path to subfolder "Fresh" of the 
      normal App Data Path. This way it's impossible that any of your everyday 
      settings are inadvertedly overwritten by the fresh instance.

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 12:52
by PeterH
My point of view:

more secure :arrow: better :appl:

Thanks!

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 13:01
by bdeshi
Yay! :appl: :appl: :appl:

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 19:45
by admin
Let me know if it works as expected...

Re: should a fresh instance touch settings data AT ALL?

Posted: 27 Jan 2015 23:03
by PeterH
admin wrote:Let me know if it works as expected...
I didn't want to install yet :roll:
...but as I was one of those mocking around :P

Didn't test all aspects, I think.
But saving settings in Fresh XY created the \Fresh subdirectory, and (verified by "Modified") didn't change any entry of the basic appdata.

So: as good as expected :appl:

Re: should a fresh instance touch settings data AT ALL?

Posted: 28 Jan 2015 00:58
by Enternal
Haven't delve deeper into breaking it yet :lol: :twisted:

But working as expected! Yeah!