
sudo
、、su
またはgksu
を使用して meld を起動すると、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
そして、私は設定を変更することができません。
比較すると、私は sudo で geany を問題なく使用し、エラーや警告も出ず、geany の設定を変更できます。
私が使う:
- メルド 3.16.4
- dconf 0.26.0
- グリブ2 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
そして問題は解決しました!