https://bugzilla.redhat.com/show_bug.cgi?id=1658153
--- Comment #44 from Petr Menšík pemensik@redhat.com --- I think I found possible improvement for default programs support. I think runtime detection is required, compile-time detection of supported programs is far from user-friendly.
Script, lets say named wdune-sound-editor could be set by default into configure. It could contain something like:
#!/bin/sh
KNOWN_SOUND_EDITORS="audacity rezound wavesurfer gnusound sweep soundeditor" FOUND= for APP in ${KNOWN_SOUND_EDITORS}; do FOUND="`command -v $APP`" if test -n "$FOUND" then $FOUND $@ exit $? fi done
if test -z "$FOUND" then echo "ERROR: No supported editor was found!" 2>&1 exit 1 fi
It would run first program in list, similar to configure script. But would not require reconfiguration when editors available are changed. EDITORS could be initialized by configure variables if required.
package-review@lists.fedoraproject.org