How to consistently send dbus messages to systemd.localed
by tht1kd from LinuxQuestions.org on (#6E81N)
I am trying to learn more about systemd and locale and am having issues consistently getting my DBus message update to send. I am currently using dbus-send to send messages just to see how it behaves before I write a C++ program. I am sending a message via:
Code:dbus-send --system --type=method_call --dest=org.freedesktop.locale1 /org/freedesktop/locale1 org.freedesktop.locale1.SetLocale array:string:"LANG=en_GB.UTF-8" boolean:falsehowever it does not always work. It always activates systemd.localed, but does not always actually update the file at /etc/local.conf.
If I send the same command several times, eventually it does take and update the file. I have made sure that the file is currently set to LANG=en_US.UTF-8, so this is a change.
Can anyone please help me understand this behavior and why it consistently pings systemd.localed, but does not always update the value on disk?
Code:dbus-send --system --type=method_call --dest=org.freedesktop.locale1 /org/freedesktop/locale1 org.freedesktop.locale1.SetLocale array:string:"LANG=en_GB.UTF-8" boolean:falsehowever it does not always work. It always activates systemd.localed, but does not always actually update the file at /etc/local.conf.
If I send the same command several times, eventually it does take and update the file. I have made sure that the file is currently set to LANG=en_US.UTF-8, so this is a change.
Can anyone please help me understand this behavior and why it consistently pings systemd.localed, but does not always update the value on disk?