locale1 API changes InputSources/Manager D-BUS API
Affected version
The latest master is affected.
Bug summary
Using the locale1 API changes the values returned by the InputSources API.
I'm not sure if this is the intended behavior. If so, please feel free to close this issue.
Steps to reproduce
- Check the input sources returned by GNOME Kiosk's D-Bus API:
$ dbus-send --session --print-reply --dest=org.gnome.Kiosk /org/gnome/Kiosk/InputSources/Manager \
org.freedesktop.DBus.Properties.Get \
string:"org.gnome.Kiosk.InputSources" \
string:"InputSources"
method return time=1710256629.963614 sender=:1.22 -> destination=:1.72 serial=85 reply_serial=2
variant array [
object path "/org/gnome/Kiosk/InputSources/xkb_es"
]
- Change them using systemd's locale1 API:
$ dbus-send --system --print-reply --type=method_call --dest=org.freedesktop.locale1 /org/freedesktop/locale1 \
org.freedesktop.locale1.SetX11Keyboard \
string:"es,us" \
string:"" \
string:"" \
string:"" \
boolean:false \
boolean:false
- Check again the input sources:
$ dbus-send --session --print-reply --dest=org.gnome.Kiosk /org/gnome/Kiosk/InputSources/Manager \
org.freedesktop.DBus.Properties.Get \
string:"org.gnome.Kiosk.InputSources" \
string:"InputSources"
method return time=1710256993.305923 sender=:1.22 -> destination=:1.73 serial=91 reply_serial=2
variant array [
object path "/org/gnome/Kiosk/InputSources/xkb_es"
object path "/org/gnome/Kiosk/InputSources/xkb_us"
]
What did you expect to happen
I believe that making changes in the locale1 API shouldn't affect the current session.