Dconf

dconf-WARNING **:未能送出對 dconf 的更改:連接已關閉

  • December 9, 2019

每當我通過終端打開任何軟體時,都會出現以下錯誤,最終軟體會打開

dconf-WARNING **: failed to commit changes to dconf: The connection is closed

(gedit:3609): dconf-WARNING **: failed to commit changes to dconf: The connection is closed

(gedit:3609): dconf-WARNING **: failed to commit changes to dconf: The connection is closed
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)

可能的問題是什麼?

我遇到了同樣的問題,就我而言,我是"sudo gedit"從使用者帳戶執行的;因此,當它嘗試保存 dconf 更改時,它意識到使用者不是 root,因此引發了這些錯誤。我通過以“root”身份執行 gedit 來解決它:

sudo -i

gedit &

在哪裡sudo -i將登錄到使用者帳戶。

這讓我緊張了很久。我終於解決了它gksudo -l <command>,它在登錄 shell 中執行命令 - 類似於 XAVI 的答案,但不需要在之後輸入命令sudo

引用自:https://unix.stackexchange.com/questions/182925