if (show_error(err, err_needidx, "Please enter the index file, not the "SONG_EXT" file\nAn index file can be made with 'kbpm-play -c'\n")) exit(err); Here we should be able to open a file selection dialogbox and let the user choose one.