Bug 5951 - ThinLinc doesn't respect AccountService language
Summary: ThinLinc doesn't respect AccountService language
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Agent (show other bugs)
Version: pre-1.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Pierre Ossman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-11 10:47 CEST by Pierre Ossman
Modified: 2016-08-16 10:30 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2016-07-11 10:47:34 CEST
Modern systems have started using something called AccountService for properties and operations where the classical NSS falls short. One such property is the user's language.

Normally this property would be read by your display manager and set for the session. ThinLinc however doesn't do that, so the language you configure in e.g. Gnome's control panel doesn't take effect.

AccountService lives on D-Bus and this example shows roughly how to access the current language:

$ dbus-send --print-reply --type=method_call --system \
  --dest=org.freedesktop.Accounts \
      `dbus-send --print-reply=literal --system \
       --dest=org.freedesktop.Accounts /org/freedesktop/Accounts \
       org.freedesktop.Accounts.FindUserById int64:\`id -u\`` \
  org.freedesktop.DBus.Properties.Get \
  string:org.freedesktop.Accounts.User string:Language

However the machine-parseable version cannot handle the return type (variant), so we most likely need to handle this in C rather than shell script.
Comment 1 Peter Åstrand cendio 2016-08-09 11:06:17 CEST
Need information about affected dists.

Note You need to log in before you can comment on or make changes to this bug.