gtk_init( &argc, &argv );
// Linux hack to determine path of the executable
+ memset(path, 0, sizeof(path));
readlink( "/proc/self/exe", path, 512 );
if ( strstr( path, "/bin/rugen" ) )
{
strcat( path, "/share/rugen/pixmaps" );
add_pixmap_directory( path );
}
+ else if ( strstr( path, "/src/rugen" ) )
+ {
+ ( *strstr( path, "/src/rugen" ) ) = '\0';
+ strcat( path, "/pixmaps" );
+ add_pixmap_directory( path );
+ }
else
{
add_pixmap_directory( PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps" );