attract icon indicating copy to clipboard operation
attract copied to clipboard

On Windows, look for the .attract directory in user's home by default

Open bskendig opened this issue 5 years ago • 4 comments

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.

bskendig avatar Jan 19 '20 02:01 bskendig

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 !

mentat51 avatar Apr 21 '20 08:04 mentat51

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.

bskendig avatar Apr 22 '20 01:04 bskendig

I understand the correct place on Windows is eithebvr %APPDATA% or %LOCALAPPDATA%, possibly even %ALLUSERSPROFILE%. Not %USERPROFILE%

rogalian avatar Jul 21 '20 14:07 rogalian

@rogalian Sure, that's fine too, as long as it's documented.

bskendig avatar Jul 21 '20 15:07 bskendig