https://bugzilla.redhat.com/show_bug.cgi?id=1658153



--- Comment #44 from Petr Menšík <pemen...@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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@lists.fedoraproject.org
To unsubscribe send an email to package-review-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/package-review@lists.fedoraproject.org

Reply via email to