summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-20 09:10:30 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-20 09:11:30 +0900
commit816f6d2406b704769e1fb39370616aa103099715 (patch)
tree880bf5c5a685ecca4bac84b3395ac9400ebd23af
parent4ec3258dedeba202713a82664946d8e354d2ba04 (diff)
allow $XDG_DESKTOP_DIR in file link paths for intl xlation
this solves T29 and then some.
-rw-r--r--data/favorites/desktop.desktop2
-rw-r--r--src/bin/e_utils.c18
2 files changed, 19 insertions, 1 deletions
diff --git a/data/favorites/desktop.desktop b/data/favorites/desktop.desktop
index 3d41ba519..1b21fa305 100644
--- a/data/favorites/desktop.desktop
+++ b/data/favorites/desktop.desktop
@@ -20,5 +20,5 @@ Comment[ru]=Файлы на рабочем столе
20Comment[sr]=Датотеке радне површи 20Comment[sr]=Датотеке радне површи
21Icon=user-desktop 21Icon=user-desktop
22NotShowIn=GNOME;KDE;LXDE;ROX;XFCE; 22NotShowIn=GNOME;KDE;LXDE;ROX;XFCE;
23URL=file:$HOME/Desktop 23URL=file:$XDG_DESKTOP_DIR
24X-Enlightenment-Type=Mount 24X-Enlightenment-Type=Mount
diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c
index 78f2d4fbc..77faa09f1 100644
--- a/src/bin/e_utils.c
+++ b/src/bin/e_utils.c
@@ -796,6 +796,24 @@ e_util_shell_env_path_eval(const char *path)
796 v = (char *)efreet_cache_home_get(); 796 v = (char *)efreet_cache_home_get();
797 else if (!strcmp(s, "XDG_DATA_HOME")) 797 else if (!strcmp(s, "XDG_DATA_HOME"))
798 v = (char *)efreet_data_home_get(); 798 v = (char *)efreet_data_home_get();
799 else if (!strcmp(s, "XDG_DESKTOP_DIR"))
800 v = (char *)efreet_desktop_dir_get();
801 else if (!strcmp(s, "XDG_DOWNLOAD_DIR"))
802 v = (char *)efreet_download_dir_get();
803 else if (!strcmp(s, "XDG_TEMPLATES_DIR"))
804 v = (char *)efreet_templates_dir_get();
805 else if (!strcmp(s, "XDG_PUBLICSHARE_DIR"))
806 v = (char *)efreet_public_share_dir_get();
807 else if (!strcmp(s, "XDG_DOCUMENTS_DIR"))
808 v = (char *)efreet_documents_dir_get();
809 else if (!strcmp(s, "XDG_MUSIC_DIR"))
810 v = (char *)efreet_music_dir_get();
811 else if (!strcmp(s, "XDG_PICTURES_DIR"))
812 v = (char *)efreet_pictures_dir_get();
813 else if (!strcmp(s, "XDG_VIDEOS_DIR"))
814 v = (char *)efreet_videos_dir_get();
815 else if (!strcmp(s, "XDG_RUNTIME_DIR"))
816 v = (char *)efreet_runtime_dir_get();
799 } 817 }
800 818
801 if (v) 819 if (v)