You are not logged in.
Hi there,
I always receives some error notice like this:
(process:28020): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
GConf Error: Client failed to connect to the D-BUS daemon:
Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Yet it can be solved if I run
export $(dbus-launch)
in a terminal.
But, I cannot manually launch d-bus session while I am using dmenu or other program to start another program.
So, I wonder, if there is some tools can provides the function of D-BUS daemon? Which means it can automatically launch dbus session for all programs.
I will appreciate it if anyone can give me some advice.
Offline
Fix the underlying issue, don't try and workaround it.
How do you start X? Is your session active? Set your locale properly?
Offline
Fix the underlying issue, don't try and workaround it.
How do you start X? Is your session active? Set your locale properly?
I am using lightdm and using it to start X. But, how do I test whether the session is active or not?
Can here comes the output of command locale:
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
Offline
But, how do I test whether the session is active or not?
loginctl show-session $XDG_SESSION_ID --property=Active
Offline
You'll also want to look at the output of locale -a.
dbus is now handled by by the systemd user session. You should not be using dbus-launch anywhere; there are already multiple threads about this with various solutions (generally old/bad configurations).
Online
TJM wrote:But, how do I test whether the session is active or not?
loginctl show-session $XDG_SESSION_ID --property=Active
The output is
Active=yes
Offline
You'll also want to look at the output of locale -a.
dbus is now handled by by the systemd user session. You should not be using dbus-launch anywhere; there are already multiple threads about this with various solutions (generally old/bad configurations).
The output is
C
en_US.UTF-8
POSIX
zh_CN.UTF-8
zh_TW.UTF-8
Offline
It seems that i3wm does not have functions like launching a d-bus session.
I wrote
export $(dbus-launch)
in .xprofile, and the the problem solved.
Offline