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

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

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

Post 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
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

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

Post 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

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

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

Post 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?

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

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

Post 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.

admin
Site Admin
Posts: 67297
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

If you want an alternative/new app data path you can do that using the /ini switch.

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

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

Post 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 :?: )

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

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

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 67297
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

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

Post 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
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 67297
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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.

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

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

Post by PeterH »

My point of view:

more secure :arrow: better :appl:

Thanks!

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

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

Post by bdeshi »

Yay! :appl: :appl: :appl:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 67297
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

Let me know if it works as expected...

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

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

Post 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:

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

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

Post by Enternal »

Haven't delve deeper into breaking it yet :lol: :twisted:

But working as expected! Yeah!

Post Reply