You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that the track_usage file that stores the telemetry setting would be better suited if it was stored in the user's .config folder.
As I understand it, the user's .cache folder may be deleted at any point (if the user needs to do it for some reason), and by doing that it would reset the telemetry setting.
My suggestion is to use the .config folder (only for the telemetry preference).
Optional migration plan
To avoid asking users the same question again (since we would ignore .cache/winetricks/track_usage completely), a migration plan could be established. Here's what I have in mind:
Winetricks would recognize both track_usage from .cache/winetricks and .config/winetricks to avoid repeating the question for users that previously answered it.
If a track_usage file is found in .cache/winetricks, Winetricks would move (not copy) it to .config/winetricks.
Once a track_usage file is found in .config/winetricks, Winetricks permanently deletes the .cache/winetricks/track_usage file (if it still exists).
Winetricks would only write to the .config/winetricks folder from now on (in regards to the telemetry setting only).
If both track_usage files in .cache/winetricks and .config/winetricks exist, the .config/winetricks one takes precedence, and the one in .cache/winetricks would be permanently deleted.
Then, a symbolic link could be created from $XDG_CONFIG_HOME/winetricks/track_usage to $XDG_CACHE_HOME/winetricks/track_usage (optional).
Thanks for your attention.
The text was updated successfully, but these errors were encountered:
Tiagoquix
changed the title
Store telemetry in "$XDG_CONFIG_HOME/winetricks" folder
Store telemetry setting in "$XDG_CONFIG_HOME/winetricks" folder
Nov 21, 2024
Hello.
I think that the
track_usage
file that stores the telemetry setting would be better suited if it was stored in the user's.config
folder.As I understand it, the user's
.cache
folder may be deleted at any point (if the user needs to do it for some reason), and by doing that it would reset the telemetry setting.My suggestion is to use the
.config
folder (only for the telemetry preference).Optional migration plan
To avoid asking users the same question again (since we would ignore
.cache/winetricks/track_usage
completely), a migration plan could be established. Here's what I have in mind:track_usage
from.cache/winetricks
and.config/winetricks
to avoid repeating the question for users that previously answered it.track_usage
file is found in.cache/winetricks
, Winetricks would move (not copy) it to.config/winetricks
.track_usage
file is found in.config/winetricks
, Winetricks permanently deletes the.cache/winetricks/track_usage
file (if it still exists)..config/winetricks
folder from now on (in regards to the telemetry setting only).track_usage
files in.cache/winetricks
and.config/winetricks
exist, the.config/winetricks
one takes precedence, and the one in.cache/winetricks
would be permanently deleted.$XDG_CONFIG_HOME/winetricks/track_usage
to$XDG_CACHE_HOME/winetricks/track_usage
(optional).Thanks for your attention.
The text was updated successfully, but these errors were encountered: