]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_profile.c
Make profiles relative to MLT_DATA instead of $prefix/share/mlt
[mlt] / src / framework / mlt_profile.c
index 542a8f11b896984aabe4dbda80d6abed78ed7cec..b8816eeab9311591588177d0547db9bf55fb43ba 100644 (file)
@@ -28,8 +28,8 @@
 #include <libgen.h>
 
 
-/** the default subdirectory of the prefix for holding profiles */
-#define PROFILES_DIR "/share/mlt/profiles/"
+/** the default subdirectory of the datadir for holding profiles */
+#define PROFILES_DIR "/profiles"
 
 /** Load a profile from the system folder.
  *
@@ -356,7 +356,7 @@ mlt_properties mlt_profile_list( )
        // Load from $prefix/share/mlt/profiles if no env var
        if ( prefix == NULL )
        {
-               prefix = PREFIX;
+               prefix = mlt_environment( "MLT_DATA" );
                filename = calloc( 1, strlen( prefix ) + strlen( PROFILES_DIR ) + 2 );
                strcpy( filename, prefix );
                if ( filename[ strlen( filename ) - 1 ] != '/' )