【问题标题】:spacemacs warning: directory is unsafespacemacs 警告:目录不安全
【发布时间】:2016-06-08 18:53:21
【问题描述】:

每当我启动 spacemacs 时都会收到此错误

error: The directory `/var/folders/2g/9ndwhk353n97d5vgcqdpsz580000gr/T//emacs504' is unsafe

似乎以前没有人遇到过这个问题。 这可能是因为我前一段时间在某个目录上做了chflag,但我不记得我到底做了什么..

我在 Mac 上,我的 spacemacs 是最新版本。

【问题讨论】:

    标签: emacs spacemacs


    【解决方案1】:

    以前没有看到该特定错误,但是当当前运行 Emacs 的用户之外的其他人拥有或有权访问该目录时,Emacs 往往会抱怨目录“不安全”。

    有关 Windows 示例,请参阅其他 Stackoverflow 问题:

    Emacs - Error when calling (server-start))

    在你的情况下,我会删除 emacs504 文件夹,因为 emacs 可能会使用正确的权限重新创建它,因为它位于 /var/ 中。

    【讨论】:

      【解决方案2】:

      我在使用基于 Cgywin Emacs 26.1 的 Spacemacs 时遇到了 /tmp/emacs... 目录的此错误。只是删除目录然后重新启动 emacs 并没有解决我的问题。但只需使用chmod g-rwx /tmp/emacs... 更改目录的访问权限就可以了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-06-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-06-23
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多