attract
attract copied to clipboard
On Windows, look for the .attract directory in user's home by default
On Windows, please have Attract-Mode default to getting its config files from %userprofile%\.attract
.
The Attract-Mode readme (https://github.com/mickelson/attract/blob/v2.6.1/Readme.md) says: "By default, Attract-Mode will look for its configuration files in the "$HOME/.attract" directory on Linux and Mac OS X, and in the current working directory on Windows." The current working directory on Windows isn't very useful, because when you launch attract.exe
by double-clicking on it from Windows Explorer, that'll probably be the attract-v2.6.1-win64
directory itself. The .attract
directory in your home directory will be ignored, and a bunch of default config files will be created in attract-v2.6.1-win64
.
Using .attract
in the user's home by default means that I can upgrade Attract-Mode and run the new version without having to remember to create a shortcut and add --config %userprofile%\.attract
to it every time.
Hello.
I use attract mode in a portable way, on an usb disk. So for me, the actual path is ok. If any change is made to use userprofile, it break my usage.
Thanks for all your work, attract mode is great !
You could have it default to looking in %userprofile%\.attract
first, and if those files aren't present, then using the application directory. Or even vice-versa. As long as it doesn't default to creating new config files when config files already exist under the home directory.
I understand the correct place on Windows is eithebvr %APPDATA% or %LOCALAPPDATA%, possibly even %ALLUSERSPROFILE%. Not %USERPROFILE%
@rogalian Sure, that's fine too, as long as it's documented.