diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-21 13:24:19 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-21 13:24:19 -0500 |
| commit | 198d98986bdf224ed29361541d19841339953088 (patch) | |
| tree | e0a588f29ce1f1c3102da4daf05316a15e9a6cea /openbox/openbox.c | |
| parent | 3263845459d15da683b7cab92fb856acbdf2800e (diff) | |
| parent | c49c2a8e408f7482f2b977d6cf97517684476ed7 (diff) | |
Merge branch 'backport' into work
Conflicts:
openbox/openbox.c
openbox/session.c
Diffstat (limited to 'openbox/openbox.c')
| -rw-r--r-- | openbox/openbox.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c index 012666dc..291b694b 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -128,6 +128,10 @@ gint main(gint argc, gchar **argv) bind_textdomain_codeset(PACKAGE_NAME, "UTF-8"); textdomain(PACKAGE_NAME); + if (chdir(g_get_home_dir()) == -1) + g_message(_("Unable to change to home directory \"%s\": %s"), + g_get_home_dir(), g_strerror(errno)); + /* parse the command line args, which can change the argv[0] */ parse_args(&argc, argv); /* parse the environment variables */ @@ -398,7 +402,7 @@ gint main(gint argc, gchar **argv) g_strfreev(argvp); } else { g_message( - _("Restart failed to execute new executable '%s': %s"), + _("Restart failed to execute new executable \"%s\": %s"), restart_path, err->message); g_error_free(err); } @@ -613,7 +617,7 @@ static void parse_args(gint *argc, gchar **argv) else { /* this is a memleak.. oh well.. heh */ gchar *err = g_strdup_printf - (_("Invalid command line argument '%s'\n"), argv[i]); + (_("Invalid command line argument \"%s\"\n"), argv[i]); ob_exit_with_error(err); } } |
