Commit 57717572 authored by nimrod's avatar nimrod
Browse files

Revert 9bbcdaae

Back to ElementaryOS, Flatpak is older there.
parent 1b7d4871
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -219,6 +219,21 @@ match_ssl_pair () {
    return "$exitcode"
}

flatpak-kill () {
    if [ "$#" -lt 1 ]
    then
        echo "You must specify application name." >> /dev/stderr
        false
    else
        name="$1"
        shift
        for pid in $(flatpak ps --columns=application,pid | awk "tolower(\$2) ~ /$name/ {print \$3}")
        do
            pkill "$@" "$pid"
        done
    fi
}

__prompt () {
    local exitstatus="$?"
    local runduration endtime