0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-31 15:12:07 +00:00
Files
termux-packages/x11-packages/freerdp/0005-read-timezone.patch
Robert Kirkman 4a72152f78 chore(main/libwayland): uniformly use termux_setup_wayland_cross_pkg_config_wrapper
- See https://github.com/termux/termux-packages/pull/24215#issuecomment-2788227037

- Replaces all instances of `export PATH="$TERMUX_PREFIX/opt/libwayland/cross/bin:$PATH"` and `wayland-scanner` patches  in reverse dependencies with `termux_setup_wayland_cross_pkg_config_wrapper`

- Some packages were working because they were using `/usr/bin/wayland-scanner`, this changes all of them to use `$PREFIX/opt/libwayland/cross/bin/wayland-scanner` instead

[no ci]
2025-04-14 09:27:50 +03:00

22 lines
506 B
Diff

--- a/winpr/libwinpr/timezone/timezone.c
+++ b/winpr/libwinpr/timezone/timezone.c
@@ -243,8 +243,16 @@
static char* winpr_get_unix_timezone_identifier_from_file(void)
{
-#if defined(ANDROID)
- return winpr_get_android_timezone_identifier();
+#if defined(__TERMUX__)
+ FILE* fp = popen("getprop persist.sys.timezone", "r");
+ char* tzid = NULL;
+
+ if (fp) {
+ tzid = winpr_read_unix_timezone_identifier_from_file(fp);
+ pclose(fp);
+ }
+
+ return tzid;
#else
FILE* fp = NULL;
char* tzid = NULL;