Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store telemetry setting in "$XDG_CONFIG_HOME/winetricks" folder #2305

Open
Tiagoquix opened this issue Nov 21, 2024 · 0 comments
Open

Store telemetry setting in "$XDG_CONFIG_HOME/winetricks" folder #2305

Tiagoquix opened this issue Nov 21, 2024 · 0 comments

Comments

@Tiagoquix
Copy link

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:

  1. Winetricks would recognize both track_usage from .cache/winetricks and .config/winetricks to avoid repeating the question for users that previously answered it.
  2. If a track_usage file is found in .cache/winetricks, Winetricks would move (not copy) it to .config/winetricks.
  3. Once a track_usage file is found in .config/winetricks, Winetricks permanently deletes the .cache/winetricks/track_usage file (if it still exists).
  4. Winetricks would only write to the .config/winetricks folder from now on (in regards to the telemetry setting only).
  5. 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.
  6. 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.

@Tiagoquix Tiagoquix changed the title Store telemetry in "$XDG_CONFIG_HOME/winetricks" folder Store telemetry setting in "$XDG_CONFIG_HOME/winetricks" folder Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant