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

将~/.FeelUOwn移动到XDG Base Directory #436

Open
h3fang opened this issue Dec 20, 2020 · 1 comment
Open

将~/.FeelUOwn移动到XDG Base Directory #436

h3fang opened this issue Dec 20, 2020 · 1 comment
Labels
FEP feeluown enhancement proposal

Comments

@h3fang
Copy link

h3fang commented Dec 20, 2020

  • 作者:@xxx
  • 创建时间:2020-12-20
  • 最近更新:2020-12-20 15:00
  • 最新状态:
    • 2020-12-20 - 提出

简介与背景

放在$HOME,会使得家目录变得混乱,难以管理。建议放到XDG_Base_Directory
相关:#236

方案概述

使用fallback的方式,依次检测以下目录是否存在:

~/.FeelUOwn
$XDG_DATA_HOME/FeelUOwn
$HOME/.local/share/FeelUOwn
...

使用环境变量的方式

例如:$FEELUOWN_DATA_DIR,(默认~/.FeelUOwn)

或者更好的方式

...

@h3fang h3fang added the FEP feeluown enhancement proposal label Dec 20, 2020
@zjuyk
Copy link

zjuyk commented Feb 7, 2021

补充描述,现在的 .FeelUOwn 的目录结构如下:

$ tree ~/.FeelUOwn -L 1
.FeelUOwn/
├── cache
├── collections
├── data
├── plugins
├── songs
├── stdout.log
└── themes

也就是说缓存,歌曲和个人设置是放在一起的,希望后续使用 XDG_Base_Directory 的时候做适当的拆分。
将缓存放在 $XDG_CACHE_HOME,设置放到 $XDG_CONFIG_HOME,下载的歌曲放到 $XDG_DATA_HOME。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEP feeluown enhancement proposal
Projects
None yet
Development

No branches or pull requests

2 participants