d2phap / ImageGlass

🏞 A lightweight, versatile image viewer
https://imageglass.org
Other
7.9k stars 502 forks source link

%APPDATA%\ImageGlass missing, no settings stored #689

Closed daooze closed 3 years ago

daooze commented 4 years ago

System info:

Users settings folder (%APPDATA%\ImageGlass) is not automatically created when the "new user setup dialog" is suppressed.

For my users I make use of the possibility to create a default configuration of ImageGlass via the file igconfig.default.xml in the installation folder of IG. This file contains all settings (except a few) which IG stored in my personal igconfig.xml upon first run. This suppresses the initial startup dialog where users can configure language settings, themes etc. That´s absolutely fine and expected behaviour as I do not want my users to click through this dialog upon first run. However, if a user changes a configuration setting, it is expected to be written to %APPDATA%\ImageGlass\igconfig.xml, but as the folder does not exist by default, no settings are stored. Manually creating the folder resolves this issue but this is difficult to handle, even in a managed environment.

I´d like ImageGlass to check if the folder %APPDATA%\ImageGlass exists every time the settings file is to be written and re-create the folder if it is not there.

d2phap commented 4 years ago

Hi @daooze This is a bug. I have checked and confirmed that if the %APPDATA%\ImageGlass does not exist, ImageGlass won't write any configs

eamonn0 commented 4 years ago

@daooze @d2phap The settings are stored properly at %AppData%\Roaming\ImageGlass.

d2phap commented 4 years ago

Fixed and ready in ImageGlass Moon https://imageglass.org/moon

Catfriend1 commented 3 years ago

Hi, i've still had this bug in 7.5.x and now upgraded to 8.x recent release where it also exists. I'm enrolling to c:/program files/imageglass which is then write protected from the user perspective . If a user first logs on and his profile is created, the appdata\imageglass folder is missing . so changing and persisting settings for the user is impossible. please reopen and have a look again. thank you.

Catfriend1 commented 3 years ago

Thanks for caring @d2phap I'm currently working around the issue by pre-creating the folder on user profile creation. Our AD logon script contains

MD "%AppData%\ImageGlass" 2>NUL:

d2phap commented 3 years ago

Fixed this bug in IG Moon: https://imageglass.org/moon

Catfriend1 commented 3 years ago

Thanks :-)