
當我使用sudo
、或啟動 meld 時su
,我有以下輸出:gksu
gksudo
(meld:1666): GLib-GIO-CRITICAL **: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
(meld:1666): GLib-GIO-CRITICAL **: g_dbus_proxy_get_name_owner: assertion 'G_IS_DBUS_PROXY (proxy)' failed
(meld:1666): dconf-WARNING **: failed to commit changes to dconf: Error spawning command line 'dbus-launch --autolaunch=745b249ad9024475816761582a9ee2ca --binary-syntax --close-stderr': Child process exited with code 1
而且我無法更改設定。
相比之下,我將 geany 與 sudo 一起使用,沒有任何問題、錯誤或警告,並且我能夠更改 geany 的設定。
我用:
- 融合3.16.4
- dconf 0.26.0
- glib2 2.50.3
答案1
安裝 dbus-x11 對我有用。
apt install dbus-x11
我現在可以更改首選項,並在啟動時看到 cli 中沒有錯誤。
答案2
根據這個主題:dbus 無法透過 kdesu/sudo 訪問,但重新編譯 dbus 會有所幫助,我必須重新編譯dbus
。
這就是我在 Archlinux 系統上所做的
# installs arch build system
sudo pacman -S abs
# download the abs dbus (do it with the root user)
abs core/dbus
# copy the files in my HOME
cp -r /var/abs/core/dbus/ ~/abs
# compile dbus
cd ~/abs/dbus
makepkg -s
# install the compiled package
sudo pacman -U dbus-1.10.16-2-x86_64.pkg.tar.xz
這解決了問題!