summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorRob Adams <robadams@ucla.edu>2003-05-29 17:16:22 +0000
committerRob Adams <readams@src.gnome.org>2003-05-29 17:16:22 +0000
commit0fa4954c46db11cdcea90934868f471a0cdea7fe (patch)
treea58a83aadd7156f91165fde525c43ee42b5d2166 /src/main.c
parent59958b0f0a91dcb198921bff7ac44b0d2227ad2b (diff)
downloadmetacity-0fa4954c46db11cdcea90934868f471a0cdea7fe.tar.gz
chdir to the user's home directory on startup. See #113755.
2003-05-29 Rob Adams <robadams@ucla.edu> * src/main.c (main): chdir to the user's home directory on startup. See #113755. * src/stack.c (get_standalone_layer): a window should be in the fullscreen layer if it or any of its transient descendants are focused or expecting the focus and it is either fullscreen or fullscreen sized. Fix for #104369. * src/stack.c (is_focused_foreach): foreach used by get_standalone_layer to find focused transient descendants.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8ea67f57..f25b61cd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -112,6 +112,9 @@ main (int argc, char **argv)
meta_set_debugging (TRUE);
meta_set_syncing (g_getenv ("METACITY_SYNC") != NULL);
+ if (g_get_home_dir ())
+ chdir (g_get_home_dir ());
+
{
char buf[256];
GDate d;