Commit Graph

302 Commits

Author SHA1 Message Date
Ryan Lortie
7523c04b54 g_get_home_dir(): honour $HOME
If the $HOME environment variable is set, prefer that to the entry in
/etc/passwd.

This brings us in line with almost every other utility and library on
UNIX-like systems while avoiding some of the more complicated
possibilities that have been suggested.

This incompatible change has been petitioned for quite some time by
many, and in particular from the Debian world, which carries a patch
that adds a new G_HOME environment variable with the same meaning as
this patch now assigns to HOME.

The primary motivation for the change was to increase the testability of
GLib-based programs from 'make check' types of frameworks: it is now
possible to set HOME to a temp directory to avoid the testsuite
modifying the user's real home directory.

The change also brings us increased compliance with the XDG Base
Directory Specification.  The specification specifically states that the
default values should be computed based on the HOME environment
variable, whereas we were basing them on the value from /etc/passwd.

The change was agreed to by all in attendence at the November 29 Gtk+
developer meeting.

https://bugzilla.gnome.org/show_bug.cgi?id=142568
2012-12-06 11:41:46 -05:00
Ryan Lortie
779ed3f0a5 NEWS 2012-11-19 16:18:20 -05:00
Ryan Lortie
7d17fd6f61 Release GLib 2.35.1 2012-10-22 22:20:47 +02:00
Matthias Clasen
096b0883fc More updates 2012-09-23 21:20:06 -04:00
Matthias Clasen
cc2b1839f5 Updates 2012-09-23 01:18:53 -04:00
Ryan Lortie
a47761a36e GLib 2.33.14 2012-09-17 17:53:58 -04:00
Matthias Clasen
626abfdc10 2.33.10 2012-09-03 15:14:18 -04:00
Ryan Lortie
ed40bf6715 NEWS, versions, etc. 2012-08-20 18:36:51 -04:00
Matthias Clasen
197ebb3be4 More updates 2012-08-06 12:08:04 -04:00
Matthias Clasen
f1a13b895d NEWS updates for 2.33.8 2012-08-04 17:49:53 -04:00
Matthias Clasen
ffefa544d6 More updates 2012-07-17 13:50:58 -04:00
Matthias Clasen
e97a4c7e5e 2.33.6
https://bugzilla.gnome.org/show_bug.cgi?id=680111
2012-07-17 13:47:26 -04:00
Matthias Clasen
d48bd70853 More updates 2012-07-15 20:36:10 -04:00
Matthias Clasen
97676046f2 Update NEWS 2012-07-12 23:51:08 -04:00
Ryan Lortie
a5ed95c9ad GLib 2.33.3 2012-06-25 16:29:53 -04:00
Matthias Clasen
e8c5bd2bb0 Updates for 2.33.2 2012-06-04 06:04:30 -04:00
Ryan Lortie
83f04afa0b GLib 2.33.1 2012-05-01 15:16:05 -07:00
Matthias Clasen
2b6cf583d2 2.32.1 2012-04-13 19:53:42 -04:00
Matthias Clasen
e1cabfd3f2 Updates 2012-04-10 23:52:30 -04:00
Matthias Clasen
816554c62b 2.32.0 2012-03-24 11:28:35 -04:00
Matthias Clasen
9f92d2110c Updates 2012-03-19 13:43:31 -04:00
Matthias Clasen
d2e742c605 More updates 2012-03-05 07:02:53 -05:00
Matthias Clasen
47b162c1df Updates for 2.31.20 2012-03-04 21:48:26 -05:00
Ryan Lortie
b80e169b14 mention g_application_quit() in the NEWS 2012-02-21 01:37:09 +01:00
Ryan Lortie
486c694af0 Mention documentation fixes in NEWS 2012-02-21 01:13:14 +01:00
Matthias Clasen
823f553e36 2.31.18 2012-02-21 00:26:48 +01:00
Matthias Clasen
439c8365da Updates 2012-02-04 11:51:45 -05:00
Matthias Clasen
ec49d55247 Updates 2012-01-30 13:38:44 -05:00
Matthias Clasen
f2b760ea18 Updates 2012-01-20 15:10:00 -05:00
Matthias Clasen
1945ed407b Updates 2012-01-16 14:00:45 -05:00
Matthias Clasen
93849185ca Updates 2012-01-09 23:23:27 -05:00
Ryan Lortie
fbe1fb8e49 glib 2.31.6 2011-12-19 13:38:21 -05:00
Ryan Lortie
2f9ab64ac9 glib 2.31.4 2011-12-12 13:36:40 -05:00
Matthias Clasen
94a2ed4bc2 Updates 2011-12-08 22:00:24 -05:00
Matthias Clasen
888a52034b Updates 2011-12-07 20:41:33 -05:00
Ryan Lortie
99718b9e22 start on the NEWS 2011-11-17 17:40:36 +00:00
Ryan Lortie
9da3dc292c more NEWS 2011-10-19 15:26:25 -04:00
Ryan Lortie
4359cbd810 I read the news today, oh boy... 2011-10-14 21:48:20 -04:00
Ryan Lortie
9d6b55499f glib 2.29.90 2011-09-06 10:08:34 -04:00
Matthias Clasen
619b773196 More updates 2011-08-30 10:28:57 -04:00
Matthias Clasen
4fb921439b First round of NEWS updates for 2.29.18 2011-08-29 18:29:16 -04:00
Matthias Clasen
4cd5762ccc More NEWS updates 2011-08-15 18:55:58 -04:00
Matthias Clasen
1cb8640ccc News for 2.29.16 2011-08-14 11:57:57 -04:00
Ryan Lortie
a6c936c45f Release 2.29.14 2011-07-22 08:55:35 +02:00
Matthias Clasen
c073ce3a3b 2.29.12 2011-07-19 23:02:05 -04:00
Matthias Clasen
0f9c4590d8 Update NEWS for 2.29.10 2011-07-05 09:17:02 -04:00
Matthias Clasen
bc403e6361 Update NEWS 2011-06-13 20:48:20 -04:00
Matthias Clasen
c40199b450 Update NEWS 2011-06-04 08:13:48 -04:00
Matthias Clasen
151016922d Add a note about atomic changes 2011-05-31 14:53:30 -04:00
Matthias Clasen
5b45c39b4b Updates 2011-05-04 14:33:03 -04:00