wm3 icon indicating copy to clipboard operation
wm3 copied to clipboard

Change Path for appdata

Open floriandd2ba opened this issue 8 years ago • 8 comments

Hi, I use WM3 in a Windows 2012 Remote Terminal Service Enviroment. All files in AppData\Local\Writemonkey 3 are not saved by logout. At next Login Writemonkey ist complety "fresh" (Example: forget Licence key).

Is it possible to change the directory for this data, similar to "data_directory"?

Thank you Florian

floriandd2ba avatar Mar 10 '17 16:03 floriandd2ba

Provide data_directory with an absolute path to any folder and it will be used for storage files. The pat must end with slash:

on osx for example: /Users/some_user/some_dir/

i.

writemonkey avatar Mar 10 '17 17:03 writemonkey

Hi,

in my settings_main_user.json file is this section: // data directory used for the local storage "data_directory": "U:/zwork/markdown/WMdaten/", (Windows Server 2012)

This works fine for "writemonkey3_sheets" and "writemonkey3_custom_dictionary".

But other files like "Web Data" or "lockfile" was created in this path: c:\Users\XXX\AppData\Local\Writemonkey 3

With this behaviour the app is not really portable or Terminal/Remote Service friendly.

I hope with this details you can better understand me. Sorry for my poor englisch.

Greats Florian

floriandd2ba avatar Mar 17 '17 12:03 floriandd2ba

The behavior described by Florian still exists in version 3.0.4 on Windows 10 pro.

Another challenge is, that there is possibly data written on a Laptop/PC, where I do not want to leave data.

Sometimes I pack my "mobile apps" in a 7z file to copy them on another machine temporarily. It is easy to configure this with identical full path, but it is not that handy, that I have to clear the local pathes on leaving this computer.

Maybe a setting option "local:true" would be useful to set writemonkey into a "full portable mode", that stores everything in a subfoler (i.e. "mydata") of the program directory. If this option specifies a fixed setting (i.e. creating a data path itself), no path specification would be required for the storage, Writemonkey would then use a relative path (program path - storage folder) - it would be completely portable and could be installed on a USB-stick.

BsNoSi avatar Oct 18 '17 08:10 BsNoSi

Notice: Changing the storage path currently (3.0.4) leads to lost of registration. The registration is always stored locally - that's not nice, because I don't want to transfer my license key to other computers!

BsNoSi avatar Oct 18 '17 09:10 BsNoSi

A portable mode with a "local" flag will be good solution for Terminalserver and portable use.

floriandd2ba avatar Oct 18 '17 12:10 floriandd2ba

Lack of option to run WriteMonkey in portable mode prevents me from using it.

I suppose that a simple solution would be what floriandd2ba suggested- on start WriteMonkey checks for portable flag in program folder and portable flag triggers portable mode- data and settings are saved in program folder. Another solution might be command line parameter, for example:

WriteMonkey.exe -portable

smaragdus avatar May 07 '18 06:05 smaragdus

I'll consider an option where all app data is saved in to a file and repopulated on next run. Making wm3 portable is on my to-do list. i.

writemonkey avatar May 07 '18 09:05 writemonkey

@writemonkey, err… Hello? :)

sergeevabc avatar Mar 14 '21 16:03 sergeevabc