Skip to content

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

Description

@jirib

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} $@ &

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions