diff options
author | Ikey Doherty <ikey@solus-project.com> | 2018-03-12 21:07:48 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-12 21:08:14 +0100 |
commit | bda58f0b9583c3d67c8f56805d08b72e784adba8 (patch) | |
tree | 241b3e2a0dc2577026b6b2ea9b8cf9c07d709626 /data/badges | |
parent | 177dab0e53ea3fe15643343b1b0fd9178e4c3e09 (diff) | |
download | arctica-greeter-bda58f0b9583c3d67c8f56805d08b72e784adba8.tar.gz arctica-greeter-bda58f0b9583c3d67c8f56805d08b72e784adba8.tar.bz2 arctica-greeter-bda58f0b9583c3d67c8f56805d08b72e784adba8.zip |
greeter: Avoid expensive Python calls when it isn't needed.
On non Debian/Ubuntu systems, the /etc/default/keyboard path does not exist.
To prevent expensive Python startup (and hundreds/thousands of stats +
follow-up loads) we'll reduce to an initial early stat, i.e. if the
non-standard file exists only then will we exectute the helper stub.
This is most useful on systems that employ systemd for the X11 keyboard
configuration (`00-keyboard.conf` from systemd-localed) so that the X server
already has the correct layout upon starting up. This approach also avoids
unnecessary xkbcomp calls forcing recompilation of non-cached assets.
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
Diffstat (limited to 'data/badges')
0 files changed, 0 insertions, 0 deletions