summaryrefslogtreecommitdiff
path: root/x11-wm/lxqt-wayland-session/files/patch-startlxqtwayland.in
blob: 269216f2ebb8369346ce50e156e77c3659dffa49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- startlxqtwayland.in.orig	2024-11-08 08:33:16 UTC
+++ startlxqtwayland.in
@@ -7,6 +7,13 @@ contains()
     [ "$str" = "$substr" -o -z "${str##$substr:*}" -o -z "${str##*:$substr:*}" -o -z "${str%%*:$substr}" ]
 }
 
+if [ -f /var/db/zoneinfo ]; then TZ=`cat /var/db/zoneinfo`;
+        cmp -s /usr/share/zoneinfo/$TZ /etc/localtime
+        if [ $? -eq 0 ]; then
+                export TZ="${TZ}"
+        fi
+fi
+
 if [ -z "$XDG_DATA_HOME" ]; then
     export XDG_DATA_HOME="$HOME/.local/share"
 fi