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

是否能修改数据存储文件夹位置 #1729

Open
yyerica opened this issue Apr 24, 2024 · 1 comment
Open

是否能修改数据存储文件夹位置 #1729

yyerica opened this issue Apr 24, 2024 · 1 comment

Comments

@yyerica
Copy link

yyerica commented Apr 24, 2024

修改数据存储位置
不想数据存储在C盘,本来已经安装在D盘了,文件数据为什么还是默认存在C盘,也不能修改,怎么样能修改呢。

@suziwen
Copy link
Owner

suziwen commented Apr 24, 2024

修改安装目录下的 package.json

把第 20 行改成 "chromium-args": "--user-data-dir=d:/xsjdata --enable-node-worker --disable-devtools",,启动后,就是在新数据目录下运行了 。

可以把原始数据目录文件拷贝到新的数据目录下(需要保持目录结构一致),这样就可以继续以前的文章操作了。

注意新数据目录的路径最好不要有空格和中文。

image


如果想避免每次系统升级小书匠客户端时,配置文件被重置的问题,可以通过命令行启动来修改数据目录的位置 Story-writer.exe --user-data-dir=d:/xsjdata, 把这个启动命令做成 bat 文件,以后点击这个 bat 文件就可以直接启动小书匠了。

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

2 participants