Reply To: Light weight screenshot and annotate combo

Forum › Forums › antiX-development › Graphics › Light weight screenshot and annotate combo › Reply To: Light weight screenshot and annotate combo

#58461
Anonymous

    The following seems to be effective in harvesting a list of suitable, installed, OpenWith candidates

    $ grep -nr MimeType= /usr/share/applications | grep image/png \
          | cut -f 1 -d':' | sed 's/.*\///' | cut -f1 -d'.' | grep -v display-im6
    
    ^---v
    
    feh
    firefox-esr
    mirage
    mtpaint
    gimp

    Do you have a handle on coding the remainder?
    – read the list into a bash array
    – use the array elements to populate a yad radiobox picklist
    – parse the yad return
    – use a case statement, invoke the itemNN that matches the returned yad value