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

提供 XDG 标准的支持 #28

Closed
arenekosreal opened this issue Jul 28, 2022 · 4 comments
Closed

提供 XDG 标准的支持 #28

arenekosreal opened this issue Jul 28, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@arenekosreal
Copy link

XDG 标准目前被大多数桌面环境支持,而现在 GTK QQ 的数据存放位置是 $HOME/.gtk-qq,会使用户的 $HOME 文件夹在显示隐藏文件时看起来更杂乱。按照 XDG 标准存放后绝大多数数据都会按照用途分别放在 .config.cache.local 下,对于强迫症的体验上会更好(

标准页面:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

@lomirus lomirus added enhancement New feature or request good first issue Good for newcomers labels Jul 28, 2022
@lomirus
Copy link
Owner

lomirus commented Jul 29, 2022

@Goodjooy 要不你看下这个,毕竟数据存储这块儿是你之前重构过的(

@Goodjooy
Copy link
Contributor

@Goodjooy 要不你看下这个,毕竟数据存储这块儿是你之前重构过的(

我找到的XDG crate [https://docs.rs/xdg/2.4.1/xdg/] 没有gnu Windows 平台支持(只支持Msvc),目前有些调试困难

@Goodjooy
Copy link
Contributor

XDG 标准目前被大多数桌面环境支持,而现在 GTK QQ 的数据存放位置是 $HOME/.gtk-qq,会使用户的 $HOME 文件夹在显示隐藏文件时看起来更杂乱。按照 XDG 标准存放后绝大多数数据都会按照用途分别放在 .config.cache.local 下,对于强迫症的体验上会更好(

标准页面: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

严格上只是将config 文件放在 $HOME/.gtk-qq ,你可以通过修改 config.toml 中的 resource_root 来修改资源存放、加载根目录。全部放在$HOME/.gtk-qq 是为了兼容原来的资源实现从而选择的默认位置

@lomirus
Copy link
Owner

lomirus commented Aug 15, 2022

Closes as finished in #30

@lomirus lomirus closed this as completed Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants