diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-05-19 16:47:08 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-05-19 16:47:08 +0200 |
commit | f3b32f8cb94bc83ded97bec478e666be6a07bf0d (patch) | |
tree | 431d0906aa4e3dad4d92566c928c5d32c4635a9d /src/gui-wizard-gtk/wizard.c | |
parent | f25d15a4574139ff080a9278d3b248a15be45e43 (diff) | |
download | abrt-f3b32f8cb94bc83ded97bec478e666be6a07bf0d.tar.gz abrt-f3b32f8cb94bc83ded97bec478e666be6a07bf0d.tar.xz abrt-f3b32f8cb94bc83ded97bec478e666be6a07bf0d.zip |
dump_dir: fix loading of Unicode texts. Closes bz#622223
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/gui-wizard-gtk/wizard.c')
-rw-r--r-- | src/gui-wizard-gtk/wizard.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c index 414b501f..bd5d28c4 100644 --- a/src/gui-wizard-gtk/wizard.c +++ b/src/gui-wizard-gtk/wizard.c @@ -207,10 +207,14 @@ struct dump_dir *steal_if_needed(struct dump_dir *dd) dd_close(dd); char *HOME = getenv("HOME"); + if (!HOME || !HOME[0]) + { + struct passwd *pw = getpwuid(getuid()); + HOME = pw ? pw->pw_dir : NULL; + } if (HOME && HOME[0]) HOME = concat_path_file(HOME, ".abrt/spool"); else -//TODO: try to find homedir in password db? HOME = xstrdup("/tmp"); GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(g_assistant), |