VidCoder icon indicating copy to clipboard operation
VidCoder copied to clipboard

Portable SettingsDirectory

Open Gubith opened this issue 3 years ago • 4 comments

Where is the Settings Directory specified now?

I found a thread from 2013 about it, but the config file no longer exists... https://www.portablefreeware.com/forums/viewtopic.php?p=65016&sid=1d6b3323857d83d4092b85bb81b254d6#p65016

Gubith avatar May 13 '22 14:05 Gubith

I removed the SettingsDirectory app config override in the Great .NET 5 Migration because the old config file format no longer worked, and I wasn't sure anyone was using the feature. Where do you want to keep the config?

RandomEngy avatar May 14 '22 06:05 RandomEngy

In the same folder as the program... it's how portable apps are done.

Gubith avatar May 19 '22 14:05 Gubith

The portable version checks in this order:

  1. If a VidCoder.sqlite file exists in the same folder as the portable executable, use it.
  2. If %appdata%\VidCoder\VidCoder.sqlite exists, use it.
  3. Otherwise, create VidCoder.sqlite beside the portable executable.

So you should be able to move, rename or delete %appdata%\VidCoder\VidCoder.sqlite and it will behave the way you want. (That is, if VidCoder has write permissions to that folder)

RandomEngy avatar May 19 '22 14:05 RandomEngy

It is better to be in the same directory as the program and easy to find and manage.

henanzheng avatar Aug 15 '22 05:08 henanzheng