. "$BST_LIB" require xdg-open xdg-utils/present # xdg-utils is a set of plain-sh desktop-integration helpers. The image is # headless (no DE detected at runtime), so the scripts take their generic # backends -- xdg-mime resolves MIME types via file(1) -- which keeps them # functional without X; the recipe's x11 gate is lifted by bbappend. # The full helper set is installed. missing="" for t in xdg-mime xdg-email xdg-desktop-menu xdg-desktop-icon \ xdg-icon-resource xdg-screensaver xdg-terminal; do command -v "$t" >/dev/null 2>&1 || missing="$missing $t" done if [ -z "$missing" ]; then bst_ok xdg-utils/all-scripts else bst_notok xdg-utils/all-scripts "missing:$missing"; fi # The scripts execute on the target shell (--version walks the common # getopt/version path each script shares). check_out xdg-utils/open-version "xdg-open" xdg-open --version check_out xdg-utils/email-version "xdg-email" xdg-email --version # Functional: the generic MIME backend classifies a text file via file(1). check_out xdg-utils/mime-filetype "text/plain" xdg-mime query filetype /etc/passwd