Browse Source

run fix-xkbmaps only one time

master
Alf Gaida 4 years ago
parent
commit
303660a70a
4 changed files with 18 additions and 1 deletions
  1. 7
    0
      debian/changelog
  2. 6
    0
      debian/lintian-overrides
  3. 4
    1
      fix-xkbmap
  4. 1
    0
      fix-xkbmap.desktop

+ 7
- 0
debian/changelog View File

@@ -1,3 +1,10 @@
siduction-scripts (2017.02.07) unstable; urgency=medium

* only run fix-xkbmap on the first start
* fixes #1921 - don't take the gatling ...

-- Alf Gaida <agaida@siduction.org> Tue, 07 Feb 2017 22:38:28 +0100

siduction-scripts (2017.01.31) unstable; urgency=medium

* ask if localectl and setxkbmap exists - if not exit silently

+ 6
- 0
debian/lintian-overrides View File

@@ -0,0 +1,6 @@
siduction-scripts: binary-without-manpage usr/sbin/addpkg
siduction-scripts: binary-without-manpage usr/bin/fix-xkbmap
siduction-scripts: binary-without-manpage usr/sbin/live
siduction-scripts: binary-without-manpage usr/bin/siduction-paste
siduction-scripts: binary-without-manpage usr/bin/wgetpaste


+ 4
- 1
fix-xkbmap View File

@@ -11,6 +11,9 @@
xkbmap=$(setxkbmap -query | grep layout | awk -F':' '{print $2}')
locale=$(localectl | grep 'X11 Layout' | awk -F':' '{print $2}')
if [ "$xkbmap" != "$locale" ]; then
setxkbmap $locale;
if [ ! -f "$HOME/.config/xkbfirstrun" ]; then
setxkbmap $locale;
touch "$HOME/.config/xkbfirstrun"
fi
fi


+ 1
- 0
fix-xkbmap.desktop View File

@@ -1,4 +1,5 @@
[Desktop Entry]
TryExec=fix-xkbmap
Exec=fix-xkbmap
Name=FixXKBMap
Type=Application

Loading…
Cancel
Save