From 30e5829fc6ac5adc3cd024c0425a5779cd4f4ff9 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Sun, 8 Jun 2014 13:33:59 -0700 Subject: [PATCH] cd home in graphical session, too --- userspace/gui/core/gsession.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/userspace/gui/core/gsession.c b/userspace/gui/core/gsession.c index ff4be5aa..0fec486a 100644 --- a/userspace/gui/core/gsession.c +++ b/userspace/gui/core/gsession.c @@ -1,6 +1,10 @@ -/* This file is part of ToaruOS and is released under the terms +/* vim: tabstop=4 shiftwidth=4 noexpandtab + * This file is part of ToaruOS and is released under the terms * of the NCSA / University of Illinois License - see LICENSE.md * Copyright (C) 2013-2014 Kevin Lange + * + * Graphical Session Manager + * */ #include #include @@ -44,6 +48,7 @@ void set_homedir() { char path[512]; sprintf(path,"/home/%s", user); setenv("HOME",path,1); + chdir(path); } else { setenv("HOME","/",1); }