[vlc-commits] Use $VLC_DATA_PATH on Linux too

Rémi Denis-Courmont git at videolan.org
Wed Mar 21 17:42:32 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Mar 21 18:39:39 2012 +0200| [9fe9e33be0e41517b5818c1d05a9a93342f089c9] | committer: Rémi Denis-Courmont

Use $VLC_DATA_PATH on Linux too

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9fe9e33be0e41517b5818c1d05a9a93342f089c9
---

 src/posix/linux_specific.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/posix/linux_specific.c b/src/posix/linux_specific.c
index 78d9130..c31cbc2 100644
--- a/src/posix/linux_specific.c
+++ b/src/posix/linux_specific.c
@@ -77,6 +77,10 @@ error:
 
 char *config_GetDataDir (void)
 {
+    const char *path = getenv ("VLC_DATA_PATH");
+    if (path != NULL)
+        return strdup (path);
+
     char *libdir = config_GetLibDir ();
     if (libdir == NULL)
         return NULL; /* OOM */



More information about the vlc-commits mailing list