aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorIkey Doherty <ikey@solus-project.com>2018-03-12 21:07:48 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-12 21:08:14 +0100
commitbda58f0b9583c3d67c8f56805d08b72e784adba8 (patch)
tree241b3e2a0dc2577026b6b2ea9b8cf9c07d709626 /debian
parent177dab0e53ea3fe15643343b1b0fd9178e4c3e09 (diff)
downloadarctica-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 'debian')
0 files changed, 0 insertions, 0 deletions