Files
MaaAssistantArknights/docs/ja-jp/manual/cli/faq.md
2024-08-28 21:55:52 +08:00

20 lines
921 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
order: 4
icon: ph:question-fill
---
# 常见问题
::: important Translation Required
This page is outdated and maybe still in Simplified Chinese. Translation is needed.
:::
## 1. 如何在 macOS 上使用 `$HOME/.config/maa` 作为配置文件目录?
由于 Rust 库 [Directories](https://github.com/dirs-dev/directories-rs/) 在 macOS 上默认使用 Apple 风格目录maa-cli 默认也使用 Apple 风格的配置目录。但是对于命令行程序来说XDG 风格的目录更加合适。如果你想要使用 XDG 风格目录,你可以设置 `XDG_CONFIG_HOME` 环境变量,如 `export XDG_CONFIG_HOME="$HOME/.config"`,这会让 maa-cli 使用 XDG 风格配置目录。如果你想要使用 XDG 风格配置目录,但是不想设置环境变量,你可以使用下面的命令创建一个符号链接:
```bash
mkdir -p "$HOME/.config/maa"
ln -s "$HOME/.config/maa" "$(maa dir config)"
```