summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2012-06-29 20:35:47 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2012-06-29 20:35:47 +0000
commit4f0bcd9b2973cda2eb0c332925321d1937ce015d (patch)
tree08b7b7ff26a51d69a2600341457b7d3eb544db6e /legacy
parenta6fc2bf1bbde16832aee3484081ac8d97b68fa8e (diff)
efreet: parse user-dirs.dirs
SVN revision: 73053
Diffstat (limited to 'legacy')
-rw-r--r--legacy/efreet/po/cs.po6
-rw-r--r--legacy/efreet/po/de.po6
-rw-r--r--legacy/efreet/po/efreet.pot4
-rw-r--r--legacy/efreet/po/el.po6
-rw-r--r--legacy/efreet/po/es.po6
-rw-r--r--legacy/efreet/po/fr.po6
-rw-r--r--legacy/efreet/po/it.po6
-rw-r--r--legacy/efreet/po/ja.po6
-rw-r--r--legacy/efreet/po/ko.po6
-rw-r--r--legacy/efreet/po/nl.po6
-rw-r--r--legacy/efreet/po/pt.po6
-rw-r--r--legacy/efreet/po/ru.po6
-rw-r--r--legacy/efreet/po/sl.po6
-rw-r--r--legacy/efreet/src/lib/efreet_base.c61
14 files changed, 98 insertions, 39 deletions
diff --git a/legacy/efreet/po/cs.po b/legacy/efreet/po/cs.po
index f191784a45..9c4db3db0a 100644
--- a/legacy/efreet/po/cs.po
+++ b/legacy/efreet/po/cs.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/Plocha" 20msgstr "Plocha"
diff --git a/legacy/efreet/po/de.po b/legacy/efreet/po/de.po
index 3df97f5de4..0a7f791082 100644
--- a/legacy/efreet/po/de.po
+++ b/legacy/efreet/po/de.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/Arbeitsfläche" 20msgstr "Arbeitsfläche"
diff --git a/legacy/efreet/po/efreet.pot b/legacy/efreet/po/efreet.pot
index 093ea02927..c333d88baa 100644
--- a/legacy/efreet/po/efreet.pot
+++ b/legacy/efreet/po/efreet.pot
@@ -6,9 +6,9 @@
6#, fuzzy 6#, fuzzy
7msgid "" 7msgid ""
8msgstr "" 8msgstr ""
9"Project-Id-Version: efreet 1.2.99.72784\n" 9"Project-Id-Version: efreet 1.2.99.72956\n"
10"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 10"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
11"POT-Creation-Date: 2012-06-25 17:14+0900\n" 11"POT-Creation-Date: 2012-06-29 21:41+0200\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n" 14"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/legacy/efreet/po/el.po b/legacy/efreet/po/el.po
index 585321c3ab..054378cef5 100644
--- a/legacy/efreet/po/el.po
+++ b/legacy/efreet/po/el.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/Επιφάνεια εργασίας" 20msgstr "Επιφάνεια εργασίας"
diff --git a/legacy/efreet/po/es.po b/legacy/efreet/po/es.po
index 85ccdc7330..459c7d99d0 100644
--- a/legacy/efreet/po/es.po
+++ b/legacy/efreet/po/es.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/Escritorio" 20msgstr "Escritorio"
diff --git a/legacy/efreet/po/fr.po b/legacy/efreet/po/fr.po
index 203b1e4298..3f94bda09f 100644
--- a/legacy/efreet/po/fr.po
+++ b/legacy/efreet/po/fr.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/Bureau" 20msgstr "Bureau"
diff --git a/legacy/efreet/po/it.po b/legacy/efreet/po/it.po
index 7f36e1ed04..002a221f2e 100644
--- a/legacy/efreet/po/it.po
+++ b/legacy/efreet/po/it.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/Scrivania" 20msgstr "Scrivania"
diff --git a/legacy/efreet/po/ja.po b/legacy/efreet/po/ja.po
index 2ac4cf256c..96fc3ef646 100644
--- a/legacy/efreet/po/ja.po
+++ b/legacy/efreet/po/ja.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/デスクトップ" 20msgstr "デスクトップ"
diff --git a/legacy/efreet/po/ko.po b/legacy/efreet/po/ko.po
index 077bca7453..d8d55c648d 100644
--- a/legacy/efreet/po/ko.po
+++ b/legacy/efreet/po/ko.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/바탕화면" 20msgstr "바탕화면"
diff --git a/legacy/efreet/po/nl.po b/legacy/efreet/po/nl.po
index 17961b39ed..ff8f275067 100644
--- a/legacy/efreet/po/nl.po
+++ b/legacy/efreet/po/nl.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/Bureaublad" 20msgstr "Bureaublad"
diff --git a/legacy/efreet/po/pt.po b/legacy/efreet/po/pt.po
index c1f6899016..8f90ddfc64 100644
--- a/legacy/efreet/po/pt.po
+++ b/legacy/efreet/po/pt.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/Área de Trabalho" 20msgstr "Área de Trabalho"
diff --git a/legacy/efreet/po/ru.po b/legacy/efreet/po/ru.po
index 1c0742e95e..81551e7cd7 100644
--- a/legacy/efreet/po/ru.po
+++ b/legacy/efreet/po/ru.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/Рабочий стол" 20msgstr "Рабочий стол"
diff --git a/legacy/efreet/po/sl.po b/legacy/efreet/po/sl.po
index 6571dabc95..92eaebb011 100644
--- a/legacy/efreet/po/sl.po
+++ b/legacy/efreet/po/sl.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: Efreet\n" 7"Project-Id-Version: Efreet\n"
8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n" 8"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
9"POT-Creation-Date: 2012-06-25 17:14+0900\n" 9"POT-Creation-Date: 2012-06-29 21:41+0200\n"
10"PO-Revision-Date: 2012-06-24 17:10+0900\n" 10"PO-Revision-Date: 2012-06-24 17:10+0900\n"
11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n" 11"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
12"Language-Team: Enlightenment Team\n" 12"Language-Team: Enlightenment Team\n"
@@ -16,5 +16,5 @@ msgstr ""
16"Content-Transfer-Encoding: 8bit\n" 16"Content-Transfer-Encoding: 8bit\n"
17 17
18#: src/lib/efreet_base.c:122 18#: src/lib/efreet_base.c:122
19msgid "/Desktop" 19msgid "Desktop"
20msgstr "/Namizje" 20msgstr "Namizje"
diff --git a/legacy/efreet/src/lib/efreet_base.c b/legacy/efreet/src/lib/efreet_base.c
index 5fbc916baf..4cea7f31ae 100644
--- a/legacy/efreet/src/lib/efreet_base.c
+++ b/legacy/efreet/src/lib/efreet_base.c
@@ -50,6 +50,7 @@ static const char *hostname = NULL;
50static const char *efreet_dir_get(const char *key, const char *fallback); 50static const char *efreet_dir_get(const char *key, const char *fallback);
51static Eina_List *efreet_dirs_get(const char *key, 51static Eina_List *efreet_dirs_get(const char *key,
52 const char *fallback); 52 const char *fallback);
53static const char *efreet_user_dir_get(const char *key, const char *fallback);
53 54
54/** 55/**
55 * @internal 56 * @internal
@@ -119,7 +120,7 @@ EAPI const char *
119efreet_desktop_dir_get(void) 120efreet_desktop_dir_get(void)
120{ 121{
121 if (xdg_desktop_dir) return xdg_desktop_dir; 122 if (xdg_desktop_dir) return xdg_desktop_dir;
122 xdg_desktop_dir = efreet_dir_get("XDG_DESKTOP_DIR", _("/Desktop")); 123 xdg_desktop_dir = efreet_user_dir_get("XDG_DESKTOP_DIR", _("Desktop"));
123 return xdg_desktop_dir; 124 return xdg_desktop_dir;
124} 125}
125 126
@@ -277,3 +278,61 @@ efreet_dirs_get(const char *key, const char *fallback)
277 278
278 return dirs; 279 return dirs;
279} 280}
281
282/**
283 * @internal
284 * @param key The user-dirs key to lookup
285 * @param fallback The fallback value to use
286 * @return Returns the directory related to the given key or the fallback
287 * @brief This tries to determine the correct directory name given the
288 * user-dirs key @a key and fallbacks @a fallback.
289 */
290static const char *
291efreet_user_dir_get(const char *key, const char *fallback)
292{
293 Eina_File *file = NULL;
294 Eina_File_Lines *line;
295 Eina_Iterator *it = NULL;
296 const char *config_home;
297 char path[PATH_MAX];
298 char *ret = NULL;
299
300 config_home = efreet_config_home_get();
301 snprintf(path, sizeof(path), "%s/user-dirs.dirs", config_home);
302
303 file = eina_file_open(path, EINA_FALSE);
304 if (!file) goto fallback;
305 it = eina_file_map_lines(file);
306 if (!it) goto fallback;
307 EINA_ITERATOR_FOREACH(it, line)
308 {
309 const char *eq, *end;
310
311 if (line->length < 3) continue;
312 if (line->line.start[0] == '#') continue;
313 if (strncmp(line->line.start, "XDG", 3)) continue;
314 eq = memchr(line->line.start, '=', line->length);
315 if (!eq) continue;
316 if (strncmp(key, line->line.start, eq - line->line.start)) continue;
317 if (++eq >= line->line.end) continue;
318 if (*eq != '"') continue;
319 if (++eq >= line->line.end) continue;
320 end = memchr(eq, '"', line->line.end - eq);
321 if (!end) continue;
322 ret = alloca(end - eq + 1);
323 memcpy(ret, eq, end - eq);
324 ret[end - eq] = '\0';
325 break;
326 }
327fallback:
328 if (it) eina_iterator_free(it);
329 if (file) eina_file_close(file);
330 if (!ret)
331 {
332 const char *home;
333 home = efreet_home_dir_get();
334 ret = alloca(strlen(home) + strlen(fallback) + 2);
335 sprintf(ret, "%s/%s", home, fallback);
336 }
337 return eina_stringshare_add(ret);
338}