After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 113755 - Metacity should chdir to $HOME at startup
Metacity should chdir to $HOME at startup
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
2.5.x
Other Linux
: Normal trivial
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2003-05-26 16:41 UTC by Rob Adams
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Rob Adams 2003-05-26 16:41:53 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];
Comment 1 Rob Adams 2003-05-29 16:34:19 UTC
ping.
Comment 2 Havoc Pennington 2003-05-29 16:59:44 UTC
I'd change to chdir (g_get_user_home())
(or whatever the glib function is called)

seems fine to commit with that change.
Comment 3 Rob Adams 2003-05-29 17:17:35 UTC
Change made and committed.  I really wish the glib reference manual
had an index.  It's so hard to find anything in there.