diff options
author | Eric Hameleers <alien@slackware.com> | 2016-04-27 16:44:35 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-04-27 16:44:35 +0200 |
commit | aa67a52a969f3ef336b845857c48a76a5e319987 (patch) | |
tree | b1f7cf606da9b9fec896c363ba6195e311defccd /liveinit | |
parent | e1ea9877dbb64a962028201731c810d4a5789ed1 (diff) | |
download | liveslak-aa67a52a969f3ef336b845857c48a76a5e319987.tar.gz liveslak-aa67a52a969f3ef336b845857c48a76a5e319987.tar.xz |
Deal with custom timezones (non-UTC) in KDE4 and PLASMA5.
Diffstat (limited to '')
-rwxr-xr-x | liveinit | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -815,6 +815,17 @@ EOT # You should run timeconfig to edit this file. localtime EOT + # QT5 expects "/etc/localtime" to be a symlink. Slackware's file is a real + # file so QT5 fails to determine the timezone and falls back to UTC. Fix: + echo ${TZ} > /mnt/overlay/etc/timezone + sed -i -n "p;s/^\( *\)rm -f localtime$/\1echo \$TZ > timezone/p" \ + /mnt/overlay//usr/sbin/timeconfig + + # KDE4 and PLASMA5 user timezone re-configuration: + sed -i -e "s%^LocalZone=.*%LocalZone=${TZ}%" \ + /mnt/overlay/home/live/.kde/share/config/ktimezonedrc + sed -i -e "s%^LocalZone=.*%LocalZone=${TZ}%" \ + /mnt/overlay/home/live/.config/ktimezonedrc fi if [ ! -z "$LIVEPW" ]; then |