Ubuntu change GNOME to XFCE problem

I'm now experiencing this problem after recently switching from Gnome to Xfce on my Ubuntu laptop.

Whenever I run "git pull", I got the warning. 
               WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-447fEO/pkcs11

I did some research and found this seems to be a problem 
with the /etc/xdg/autostart/gnome-keyring-*.desktop file, specifically the OnlyShowIn paramter.

I took a look at my /etc/xdg/autostart/gnome-keyring-pkcs11.desktop file and found this:

OnlyShowIn=GNOME;Unity

XFCE was missing so I added it:

OnlyShowIn=GNOME;Unity;XFCE

Then I log out, ran "git pull", and the error did not appear.

Seems like the problem only affects XFCE users (or any users not using desktop environments specified in OnlyShowIn).

Hope this helps.

你可能感兴趣的:(ubuntu)