Support user directories $XDG_PICTURES_DIR, $XDG_VIDEOS_DIR,

$XDG_DOWNLOAD_DIR, $XDG_TEMPLATES_DIR, $XDG_PUBLICSHARE_DIR,
$XDG_DOCUMENTS_DIR and $XDG_MUSIC_DIR.



SVN revision: 77668
devs/devilhorns/wayland_egl
Gustavo Sverzut Barbieri 10 years ago
parent 6368cfbbc2
commit 753f334e73
  1. 3
      legacy/efreet/ChangeLog
  2. 5
      legacy/efreet/NEWS
  3. 32
      legacy/efreet/po/cs.po
  4. 32
      legacy/efreet/po/de.po
  5. 34
      legacy/efreet/po/efreet.pot
  6. 32
      legacy/efreet/po/el.po
  7. 32
      legacy/efreet/po/es.po
  8. 32
      legacy/efreet/po/fr.po
  9. 31
      legacy/efreet/po/gl.po
  10. 32
      legacy/efreet/po/it.po
  11. 32
      legacy/efreet/po/ja.po
  12. 32
      legacy/efreet/po/ko.po
  13. 32
      legacy/efreet/po/nl.po
  14. 32
      legacy/efreet/po/pt.po
  15. 32
      legacy/efreet/po/ru.po
  16. 32
      legacy/efreet/po/sl.po
  17. 81
      legacy/efreet/src/lib/efreet_base.c
  18. 49
      legacy/efreet/src/lib/efreet_base.h

@ -143,3 +143,6 @@
2012-10-09 Gustavo Sverzut Barbieri (k-s)
* Add $XDG_RUNTIME_DIR support
* Add user directories $XDG_PICTURES_DIR, $XDG_VIDEOS_DIR,
$XDG_DOWNLOAD_DIR, $XDG_TEMPLATES_DIR, $XDG_PUBLICSHARE_DIR,
$XDG_DOCUMENTS_DIR and $XDG_MUSIC_DIR.

@ -8,7 +8,10 @@ Fixes:
Additions:
* Support XDG_RUNTIME_DIR
* Support XDG_RUNTIME_DIR.
* Support user directories $XDG_PICTURES_DIR, $XDG_VIDEOS_DIR,
$XDG_DOWNLOAD_DIR, $XDG_TEMPLATES_DIR, $XDG_PUBLICSHARE_DIR,
$XDG_DOCUMENTS_DIR and $XDG_MUSIC_DIR.
Changes since Efreet 1.2.0:

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Plocha"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Arbeitsfläche"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: efreet 1.7.0\n"
"Project-Id-Version: efreet 1.7.99.77644\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,6 +17,34 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr ""
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Επιφάνεια εργασίας"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Escritorio"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Bureau"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-30 19:32+0200\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-09-16 11:07+0200\n"
"Last-Translator: Aníbal Garrido <khany@member.trisquel.info>\n"
"Language-Team: http://trasno.net/ <proxecto@trasno.net>\n"
@ -15,7 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Escritorio"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Scrivania"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "デスクトップ"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "바탕화면"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Bureaublad"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Área de Trabalho"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Рабочий стол"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Efreet\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-08-27 19:16+0900\n"
"POT-Creation-Date: 2012-10-09 15:16-0300\n"
"PO-Revision-Date: 2012-06-24 17:10+0900\n"
"Last-Translator: Jerome Pinot <ngc891@gmail.com>\n"
"Language-Team: Enlightenment Team\n"
@ -15,6 +15,34 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/lib/efreet_base.c:127
#: src/lib/efreet_base.c:144
msgid "Desktop"
msgstr "Namizje"
#: src/lib/efreet_base.c:152
msgid "Downloads"
msgstr ""
#: src/lib/efreet_base.c:161
msgid "Templates"
msgstr ""
#: src/lib/efreet_base.c:170
msgid "Public"
msgstr ""
#: src/lib/efreet_base.c:179
msgid "Documents"
msgstr ""
#: src/lib/efreet_base.c:187
msgid "Music"
msgstr ""
#: src/lib/efreet_base.c:195
msgid "Pictures"
msgstr ""
#: src/lib/efreet_base.c:203
msgid "Videos"
msgstr ""

@ -50,6 +50,13 @@ static const char *xdg_runtime_dir = NULL;
static Eina_List *xdg_data_dirs = NULL;
static Eina_List *xdg_config_dirs = NULL;
static const char *xdg_desktop_dir = NULL;
static const char *xdg_download_dir = NULL;
static const char *xdg_templates_dir = NULL;
static const char *xdg_publicshare_dir = NULL;
static const char *xdg_documents_dir = NULL;
static const char *xdg_music_dir = NULL;
static const char *xdg_pictures_dir = NULL;
static const char *xdg_videos_dir = NULL;
static const char *hostname = NULL;
static const char *efreet_dir_get(const char *key, const char *fallback);
@ -85,6 +92,14 @@ efreet_base_shutdown(void)
{
IF_RELEASE(efreet_home_dir);
IF_RELEASE(xdg_desktop_dir);
IF_RELEASE(xdg_download_dir);
IF_RELEASE(xdg_templates_dir);
IF_RELEASE(xdg_publicshare_dir);
IF_RELEASE(xdg_documents_dir);
IF_RELEASE(xdg_music_dir);
IF_RELEASE(xdg_pictures_dir);
IF_RELEASE(xdg_videos_dir);
IF_RELEASE(xdg_data_home);
IF_RELEASE(xdg_config_home);
IF_RELEASE(xdg_cache_home);
@ -130,6 +145,65 @@ efreet_desktop_dir_get(void)
return xdg_desktop_dir;
}
EAPI const char *
efreet_download_dir_get(void)
{
if (xdg_download_dir) return xdg_download_dir;
xdg_download_dir = efreet_user_dir_get("XDG_DOWNLOAD_DIR", _("Downloads"));
return xdg_download_dir;
}
EAPI const char *
efreet_templates_dir_get(void)
{
if (xdg_templates_dir) return xdg_templates_dir;
xdg_templates_dir = efreet_user_dir_get("XDG_TEMPLATES_DIR",
_("Templates"));
return xdg_templates_dir;
}
EAPI const char *
efreet_public_share_dir_get(void)
{
if (xdg_publicshare_dir) return xdg_publicshare_dir;
xdg_publicshare_dir = efreet_user_dir_get("XDG_PUBLICSHARE_DIR",
_("Public"));
return xdg_publicshare_dir;
}
EAPI const char *
efreet_documents_dir_get(void)
{
if (xdg_documents_dir) return xdg_documents_dir;
xdg_documents_dir = efreet_user_dir_get("XDG_DOCUMENTS_DIR",
_("Documents"));
return xdg_documents_dir;
}
EAPI const char *
efreet_music_dir_get(void)
{
if (xdg_music_dir) return xdg_music_dir;
xdg_music_dir = efreet_user_dir_get("XDG_MUSIC_DIR", _("Music"));
return xdg_music_dir;
}
EAPI const char *
efreet_pictures_dir_get(void)
{
if (xdg_pictures_dir) return xdg_pictures_dir;
xdg_pictures_dir = efreet_user_dir_get("XDG_PICTURES_DIR", _("Pictures"));
return xdg_pictures_dir;
}
EAPI const char *
efreet_videos_dir_get(void)
{
if (xdg_videos_dir) return xdg_videos_dir;
xdg_videos_dir = efreet_user_dir_get("XDG_VIDEOS_DIR", _("Videos"));
return xdg_videos_dir;
}
EAPI const char *
efreet_data_home_get(void)
{
@ -206,6 +280,13 @@ void
efreet_dirs_reset(void)
{
eina_stringshare_replace(&xdg_desktop_dir, NULL);
eina_stringshare_replace(&xdg_download_dir, NULL);
eina_stringshare_replace(&xdg_templates_dir, NULL);
eina_stringshare_replace(&xdg_publicshare_dir, NULL);
eina_stringshare_replace(&xdg_documents_dir, NULL);
eina_stringshare_replace(&xdg_music_dir, NULL);
eina_stringshare_replace(&xdg_pictures_dir, NULL);
eina_stringshare_replace(&xdg_videos_dir, NULL);
}
/**

@ -41,6 +41,55 @@ EAPI const char *efreet_config_home_get(void);
*/
EAPI const char *efreet_desktop_dir_get(void);
/**
* @return Returns the XDG Download directory
* @brief Retrieves the XDG Download directory
* @since 1.8
*/
EAPI const char *efreet_download_dir_get(void);
/**
* @return Returns the XDG Templates directory
* @brief Retrieves the XDG Templates directory
* @since 1.8
*/
EAPI const char *efreet_templates_dir_get(void);
/**
* @return Returns the XDG Public Share directory
* @brief Retrieves the XDG Public Share directory
* @since 1.8
*/
EAPI const char *efreet_public_share_dir_get(void);
/**
* @return Returns the XDG Documents directory
* @brief Retrieves the XDG Documents directory
* @since 1.8
*/
EAPI const char *efreet_documents_dir_get(void);
/**
* @return Returns the XDG Music directory
* @brief Retrieves the XDG Music directory
* @since 1.8
*/
EAPI const char *efreet_music_dir_get(void);
/**
* @return Returns the XDG Pictures directory
* @brief Retrieves the XDG Pictures directory
* @since 1.8
*/
EAPI const char *efreet_pictures_dir_get(void);
/**
* @return Returns the XDG Videos directory
* @brief Retrieves the XDG Videos directory
* @since 1.8
*/
EAPI const char *efreet_videos_dir_get(void);
/**
* @return Returns the Eina_List of preference ordered extra config directories
* @brief Returns the Eina_List of preference ordered extra config

Loading…
Cancel
Save