WARNING: gnome-keyring:: couldn't connect to...


用 ubuntu 开发的时候, 不知道什么原因只要我 repo sync 就会出现下面这个警告, 很烦人.

WARNING: gnome-keyring:: couldn’t connect to: /tmp/keyring-Kg5jQm/pkcs11: No such file or directory


Google 了一圈找到解决方案:

  1. You can run it as startup job:

    $ /usr/bin/gnome-keyring-daemon –start –components=pkcs11

  2. 参考一: WARNING: gnome-keyring:: couldn’t connect to: /tmp/keyring
    参考二: How to fix WARNING: gnome-keyring:: couldn’t connect to:

    查看文件 gnome-keyring-pkcs11.desktop 的内容:

    $ cat /etc/xdg/autostart/gnome-keyring-pkcs11.desktop
    $ leafpad /etc/xdg/autostart/gnome-keyring-pkcs11.desktop

    将 OnlyShowIn=GNOME;Unity;
    修改为:
    OnlyShowIn=GNOME;Unity;XFCE

你可能感兴趣的:(Unix/Linux,Yocto)