summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-07 15:12:15 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-07 15:12:15 +0000
commit7edc06111f3f861ce35b021899b922caba3aa5ee (patch)
tree7627ea25f40dd5e09dd96bd5ca7cd25caeff270f /legacy/efreet
parentce51bb7a588bd4bcf140119746338e373190d596 (diff)
add XDG_DESKTOP_DIR based on http://freedesktop.org/wiki/Software/xdg-user-dirs
seb if I put this in the wrong place let me know SVN revision: 71816
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/ChangeLog4
-rw-r--r--legacy/efreet/NEWS5
-rw-r--r--legacy/efreet/src/lib/efreet_base.c8
-rw-r--r--legacy/efreet/src/lib/efreet_base.h7
4 files changed, 24 insertions, 0 deletions
diff --git a/legacy/efreet/ChangeLog b/legacy/efreet/ChangeLog
index f7ad95c5bb..e40b5e8659 100644
--- a/legacy/efreet/ChangeLog
+++ b/legacy/efreet/ChangeLog
@@ -119,3 +119,7 @@
119 119
120 * Faster loading of mime type. 120 * Faster loading of mime type.
121 121
122
1232012-06-07 Mike Blumenkrantz
124
125 * Support XDG_DESKTOP_DIR
diff --git a/legacy/efreet/NEWS b/legacy/efreet/NEWS
index 5ebcbad4b6..54caaca8f1 100644
--- a/legacy/efreet/NEWS
+++ b/legacy/efreet/NEWS
@@ -7,6 +7,11 @@ Improvements:
7 7
8 * Faster mime type loading. 8 * Faster mime type loading.
9 9
10
11Additions:
12
13 * Support XDG_DESKTOP_DIR
14
10Efreet 1.2.0 15Efreet 1.2.0
11 16
12Changes since Efreet 1.1.0: 17Changes since Efreet 1.1.0:
diff --git a/legacy/efreet/src/lib/efreet_base.c b/legacy/efreet/src/lib/efreet_base.c
index aaa2af03ee..895be364af 100644
--- a/legacy/efreet/src/lib/efreet_base.c
+++ b/legacy/efreet/src/lib/efreet_base.c
@@ -114,6 +114,14 @@ efreet_home_dir_get(void)
114} 114}
115 115
116EAPI const char * 116EAPI const char *
117efreet_desktop_dir_get(void)
118{
119 if (xdg_desktop_dir) return xdg_desktop_dir;
120 xdg_desktop_dir = efreet_dir_get("XDG_DESKTOP_DIR", "/Desktop");
121 return xdg_desktop_dir;
122}
123
124EAPI const char *
117efreet_data_home_get(void) 125efreet_data_home_get(void)
118{ 126{
119 if (xdg_data_home) return xdg_data_home; 127 if (xdg_data_home) return xdg_data_home;
diff --git a/legacy/efreet/src/lib/efreet_base.h b/legacy/efreet/src/lib/efreet_base.h
index 805485a38c..0eb3d52297 100644
--- a/legacy/efreet/src/lib/efreet_base.h
+++ b/legacy/efreet/src/lib/efreet_base.h
@@ -35,6 +35,13 @@ EAPI Eina_List *efreet_data_dirs_get(void);
35EAPI const char *efreet_config_home_get(void); 35EAPI const char *efreet_config_home_get(void);
36 36
37/** 37/**
38 * @return Returns the XDG Desktop directory
39 * @brief Retrieves the XDG Desktop directory
40 * @since 1.3
41 */
42EAPI const char *efreet_desktop_dir_get(void);
43
44/**
38 * @return Returns the Eina_List of preference ordered extra config directories 45 * @return Returns the Eina_List of preference ordered extra config directories
39 * @brief Returns the Eina_List of preference ordered extra config 46 * @brief Returns the Eina_List of preference ordered extra config
40 * directories 47 * directories