Skip to content

Commit

Permalink
Use $VLC_DATA_PATH on Linux too
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Mar 21, 2012
1 parent 1cb93c3 commit 9fe9e33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/posix/linux_specific.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ char *config_GetLibDir (void)

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 */
Expand Down

0 comments on commit 9fe9e33

Please sign in to comment.