問題描述: 可以進入登錄頁面,但是輸入用戶名,密碼后,直接閃退。
查看 該用戶名 ~/.xsession-errors
imsettings-check: ): IMSettings-WARNING **: Could not connect: Connection refused (imsettings-check: ): GLib-GIO-CRITICAL **: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications. ** (process: ): WARNING **: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect: Connection refused
我的原因是 dbus_daemon 沖突;
為啥沖突,是因為安裝了 Anconda3 的bin 有 dbus_daemon
系統 /usr/bin 下面也有 dbus_daemon
<可以在 root 命令下 find / -name "dbus_dameon">
我們需要讓系統先識別,/usr/bin 下面的dbus_damon
因此需要修改一下該用戶的環境變量
<可以先查看一下 輸入命令 env ,或者 echo $PATH >
修改該用戶下的 ~/.bashrc 或者 ~/.bash_profile 讓 /usr/bin 在Anconda 的環境變量之前就行
修改完:source 一下
再查看一下:echo $PATH 是否修改成功