diff options
Diffstat (limited to 'app-text/sdcv/files/sdcv-0.4.2-respect-HOME.patch')
-rw-r--r-- | app-text/sdcv/files/sdcv-0.4.2-respect-HOME.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app-text/sdcv/files/sdcv-0.4.2-respect-HOME.patch b/app-text/sdcv/files/sdcv-0.4.2-respect-HOME.patch new file mode 100644 index 000000000000..5b616500c6ce --- /dev/null +++ b/app-text/sdcv/files/sdcv-0.4.2-respect-HOME.patch @@ -0,0 +1,17 @@ +=== modified file 'src/sdcv.cpp' +--- src/sdcv.cpp 2008-11-18 12:43:28 +0000 ++++ src/sdcv.cpp 2008-11-18 12:43:41 +0000 +@@ -161,7 +161,11 @@ + + strlist_t dicts_dir_list; + +- dicts_dir_list.push_back(std::string(g_get_home_dir())+G_DIR_SEPARATOR+ ++ const char *homedir = g_getenv ("HOME"); ++ if (!homedir) ++ homedir = g_get_home_dir (); ++ ++ dicts_dir_list.push_back(std::string(homedir)+G_DIR_SEPARATOR+ + ".stardict"+G_DIR_SEPARATOR+"dic"); + dicts_dir_list.push_back(data_dir); + + |