blob: 5b616500c6ced43931099234755d41016a38293b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
|