Sure that’s possible. Already possible in fact
Let’s just do it the unix way:
#!/bin/bash
editor_names="Gimp Krita Geeqie" # EDITME - list of editors
i=0
args=""
for e in $editor_names; do
i=$(expr $i + 1)
args="$args $i $e"
done
selected=$(zenity --list --column="ID" --column="Name" --title="Select the Editor" --height=400 --hide-column=1 --print-column=1 $args)
if [ "$selected" = "1" ]; then
/opt/appimages/GIMP.appimage "$@" # EDITME - command line for GIMP
elif [ "$selected" = "2" ]; then
/opt/appimages/krita-4.1.7-x86_64.appimage "$@" # EDITME - krita
elif [ "$selected" = "3" ]; then
/opt/geeqie/bin/geeqie "$@" # EDITME - geeqie
else
exit 0
fi
just save the above in a file (e.g. select-editor.sh
), make it executable, and modify the command lines where marked. It should work…