How to remove dconf-WARNING when running gedit over SSH?

I had a similar warning message (gedit:26764): dconf-WARNING **: 13:08:06.253: failed to commit changes to dconf: Failed to execute child process "dbus-launch" (No such file or directory) i solved it with dbus-run-session gedit <filename>. Hopefully it solves it for you, too.

Long version: I had a problem on my Raspberry Pi (Buster) when i tried to set some properties (tab size, ...) in gedit. To serve as smart meter, this raspberry is installed to be used for ssh and plain console only.

Just solved it with:

  • start a new session (log off and log on with "ssh -X @host")
  • start gedit with 'dbus-run-session gedit '

Then i was able to set the properties. I knew it from times i having Problems on different machines with starting gedit leading to a 25 second timeout and not working.So we tried to start it with dbus-launch and it worked.