Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jirib opened this issue Jan 26, 2021 · 1 comment
Open

Comments

@jirib
Copy link

jirib commented Jan 26, 2021

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} $@ &
@jceb
Copy link
Owner

jceb commented Aug 8, 2024

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

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

No branches or pull requests

2 participants