GNOME Bugzilla – Bug 113755
Metacity should chdir to $HOME at startup
Last modified: 2004-12-22 21:47:04 UTC
This one's pretty minor, but apparently a friend of mine is bugged by this. Here's a patch: Index: main.c =================================================================== RCS file: /cvs/gnome/metacity/src/main.c,v retrieving revision 1.44 diff -p -u -r1.44 main.c --- main.c 28 Feb 2003 01:24:43 -0000 1.44 +++ main.c 26 May 2003 16:40:08 -0000 @@ -111,6 +111,8 @@ main (int argc, char **argv) if (g_getenv ("METACITY_DEBUG")) meta_set_debugging (TRUE); meta_set_syncing (g_getenv ("METACITY_SYNC") != NULL); + if (g_getenv ("HOME")) + chdir(g_getenv ("HOME")); { char buf[256];
ping.
I'd change to chdir (g_get_user_home()) (or whatever the glib function is called) seems fine to commit with that change.
Change made and committed. I really wish the glib reference manual had an index. It's so hard to find anything in there.