1 diff -urN gnome-settings-daemon-2.91.91/plugins/datetime/system-timezone.c gnome-settings-daemon-2.91.91.new//plugins/datetime/system-timezone.c
2 --- gnome-settings-daemon-2.91.91/plugins/datetime/system-timezone.c 2011-03-02 18:13:27.000000000 +0000
3 +++ gnome-settings-daemon-2.91.91.new//plugins/datetime/system-timezone.c 2011-03-16 21:20:28.720003184 +0000
5 #include "system-timezone.h"
7 /* Files that we look at */
8 -#define ETC_TIMEZONE "/etc/timezone"
9 -#define ETC_TIMEZONE_MAJ "/etc/TIMEZONE"
10 -#define ETC_RC_CONF "/etc/rc.conf"
11 -#define ETC_SYSCONFIG_CLOCK "/etc/sysconfig/clock"
12 -#define ETC_CONF_D_CLOCK "/etc/conf.d/clock"
13 -#define ETC_LOCALTIME "/etc/localtime"
14 +#define ETC_TIMEZONE "/etc/timezone"
15 +#define ETC_TIMEZONE_MAJ "/etc/TIMEZONE"
16 +#define ETC_RC_CONF "/etc/rc.conf"
17 +#define ETC_SYSCONFIG_CLOCK "/etc/sysconfig/clock"
18 +#define ETC_SYSCONFIG_TIMEZONE "/etc/sysconfig/timezone"
19 +#define ETC_CONF_D_CLOCK "/etc/conf.d/clock"
20 +#define ETC_LOCALTIME "/etc/localtime"
22 /* The first 4 characters in a timezone file, from tzfile.h */
23 #define TZ_MAGIC "TZif"
25 * openSUSE: the TIMEZONE key in /etc/sysconfig/clock
26 * Solaris/OpenSolaris: the TZ key in /etc/TIMEZONE
27 * Arch Linux: the TIMEZONE key in /etc/rc.conf
28 + * PLD Linux: the TIMEZONE key in /etc/sysconfig/timezone
29 * Gentoo (old): the ZONE key in /etc/conf.d/clock
31 * FIXME: reading the system-tools-backends, it seems there's this too:
33 "TIMEZONE", tz, error);
36 +/* This works for PLD Linux */
38 +system_timezone_read_etc_sysconfig_timezone (void)
40 + return system_timezone_read_key_file (ETC_SYSCONFIG_TIMEZONE,
45 +system_timezone_write_etc_sysconfig_timezone (const char *tz,
48 + return system_timezone_write_key_file (ETC_SYSCONFIG_TIMEZONE,
49 + "TIMEZONE", tz, error);
52 /* This works for Arch Linux */
54 system_timezone_read_etc_rc_conf (void)
56 system_timezone_read_etc_timezone,
57 system_timezone_read_etc_sysconfig_clock,
58 system_timezone_read_etc_sysconfig_clock_alt,
59 + system_timezone_read_etc_sysconfig_timezone,
60 system_timezone_read_etc_TIMEZONE,
61 system_timezone_read_etc_rc_conf,
62 /* reading deprecated config files */
64 system_timezone_write_etc_timezone,
65 system_timezone_write_etc_sysconfig_clock,
66 system_timezone_write_etc_sysconfig_clock_alt,
67 + system_timezone_write_etc_sysconfig_timezone,
68 system_timezone_write_etc_TIMEZONE,
69 system_timezone_write_etc_rc_conf,
70 /* writing deprecated config files if they exist and have the