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

Squirrel 0.18 Nightly build 配置文件路径问题 #885

Closed
scomper opened this issue May 10, 2024 · 10 comments · Fixed by #898
Closed

Squirrel 0.18 Nightly build 配置文件路径问题 #885

scomper opened this issue May 10, 2024 · 10 comments · Fixed by #898

Comments

@scomper
Copy link

scomper commented May 10, 2024

~/Library/Rime (原路径)
Nightly build 的版本安装后,配置文件夹的路径变更了,设置软链接会提示没有权限打开。
~/Library/Containers/im.rime.inputmethod.Squirrel/Data/Library/Rime (变更后的路径)

@m-zheng
Copy link

m-zheng commented May 12, 2024

I second this. There is another permission issue related to it.

Suppose the sync_dir in installation.yaml is somewhere in the ~/Documents, Squirrel no longer shows a window to ask users to grant the file access permission. This breaks the Sync user data function.

The error message looks like blow.

E20240512 20:14:07.918341 0x700004ba8000 deployer.cc:92] Error deploying: filesystem error: in directory_iterator::directory_iterator(...): Operation not permitted ["/Users/xxxx/Documents/RimeSync"]

@LEOYoon-Tsaw
Copy link
Member

LEOYoon-Tsaw commented May 12, 2024

因爲用了Sandbox吧,CI沒有codesign或者codesign時沒有加entitlement

@m-zheng
Copy link

m-zheng commented May 13, 2024

因爲用了Sandbox吧,正式版沒有這個問題

I pulled the whole repository and compiled it from scratch. Any suggestion to disable the sandbox would be highly appreciated.

@ksqsf
Copy link
Contributor

ksqsf commented May 13, 2024

@LEOYoon-Tsaw 正式版是怎麼構建的?現在應該所有 CI artifact 都會有這個問題。

@LEOYoon-Tsaw
Copy link
Member

LEOYoon-Tsaw commented May 13, 2024

Any suggestion to disable the sandbox would be highly appreciated.

停用sandbox只需要修改entitlement文件,把sandbox項改為no

@LEOYoon-Tsaw
Copy link
Member

@LEOYoon-Tsaw 正式版是怎麼構建的?現在應該所有 CI artifact 都會有這個問題。

直接 make package。Sandbox是 #841 引入的,是對安全性的很大增強,CI流程可能沒有很好適配吧,得看看要調整一下CI

@lotem
Copy link
Member

lotem commented May 13, 2024

我記得我給這項功能拆掉了呀。怎麼又有了?

@LEOYoon-Tsaw
Copy link
Member

LEOYoon-Tsaw commented May 13, 2024

是公子拆掉了啊,我看著自動生成的更新紀錄有,就想著是不是誰不小心給幹掉了,加回去試了一下能用,就加回去了

是有啥問題嗎?正式發布的版本是好用的

Sandbox估計是需要codesign才能正常使用,所以nightly用不了

但還是有必要的吧,現在plugin越來越多,lua也可以隨便跑,不加個沙盒哪天出事了咋整。

@caobo
Copy link

caobo commented May 15, 2024

既然改路径了,可不可以改成更直观更泛用的配置路径呢,比如 $XDG_CONFIG_HOME($HOME/.config)。

@ksqsf
Copy link
Contributor

ksqsf commented May 16, 2024

改不了,沙盒机制决定的

@LEOYoon-Tsaw LEOYoon-Tsaw linked a pull request May 20, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

6 participants