dex icon indicating copy to clipboard operation
dex copied to clipboard

[RFE] add ability to accept arguments which would be passed to command

Open jirib opened this issue 4 years ago • 1 comments

Ideally I would love to pass args to dex , an example:

dex /usr/share/applications/google-chrome.desktop https://www.github.com
$ dex /usr/share/applications/google-chrome.desktop https://www.github.com
File does not exist: /https://www.github.com

Right now I created a wrapper but native support would be better:

_getpath() {
    _path=$1
    dex -dv ${_path} 2>/dev/null | \
        grep -Po '^Executing command: \K(.*)$'
}

_cmd=$(_getpath /usr/share/applications/google-chrome.desktop
exec ${_cmd} $@ &

jirib avatar Jan 26 '21 09:01 jirib

Hi, thank you for the idea. I like it, please create a PR.

jceb avatar Aug 08 '24 15:08 jceb