1. ホーム
  2. リナックス

debian(wheezy) gvim GConf-WARNING **: クライアントが D-BUS デーモンへの接続に失敗しました。

2022-02-26 22:26:16

最近、tmuxを開いてrootに切り替え、gvim xxxを実行すると、エラーがポップアップします。

oot@debian:/# gvim 1.txt

(gvim:6040): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(gvim:6040): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(gvim:6040): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(gvim:6040): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(gvim:6040): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(gvim:6040): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(gvim:6040): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(gvim:6040): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.






D-busのデーモンがオンになっていないということですが、要はrootで有効にしているのです。今までこんなことは一度もありませんでした。最近、su -ではなく、sr = su rootというエイリアスを使用して、早く切りすぎていたようです。 

rootのログイン環境がない。これは ~/.bash_profile が読み込まれないため、適切な認証サポートが欠如していることを意味します。 

そこで簡単、エイリアスをsr = su rootからsu - またはsu - rootに変更します。 

また、/usr/bin/gvim を dbus-launch --exit-with-session /usr/bin/gvim に置き換えると gvim が起動しますが、これではセッションを取得できず、エラーになります。

(gvim:6642): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.