Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 4698  / 2 Years ago, sun, august 28, 2022, 8:11:09

I am using Firefox via ssh on the following machine:



g1> head -1 /etc/motd
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-26-generic x86_64)
g1> firefox -version
Mozilla Firefox 17.0.1


When called from an xterm, the following message appears repeatedly. It seems to be printed only when I perform some action, like writing this question. Clicking on something. Otherwise, no message is printed.



(firefox:4162): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message


While writing this question I received about a dozen such messages.



Is there some way to avoid this (apart from 2> /dev/null)?



Probably, the following is irrelevant, but who knows:



g1> uname -a
Linux g1 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

More From » 12.04

 Answers
7

You can use the program dbus-launch to get around this issue. So before you start Firefox type export $(dbus-launch). Now you can start Firefox. However there might another error message appear. If yes you can work around with export NSS_USE_SHARED_DB=ENABLED. Now Firefox should start without error messages or warnings.



Can can put that alltogether in a shell script:



#!/bin/sh
export $(dbus-launch)
export NSS_USE_SHARED_DB=ENABLED
firefox &


If no dbus-launch is installed on your system, you should install the package dbus-x11. The program is part of this package.


[#33302] Sunday, August 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oneeme

Total Points: 340
Total Questions: 110
Total Answers: 133

Location: Ghana
Member since Fri, Oct 21, 2022
2 Years ago
;