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

Escaping spaces when launching with '-e' option #586

Closed
wallace11 opened this issue Apr 18, 2019 · 2 comments
Closed

Escaping spaces when launching with '-e' option #586

wallace11 opened this issue Apr 18, 2019 · 2 comments

Comments

@wallace11
Copy link

Expected Behavior

Properly escape spaces in given paths.

Current Behavior
$ qterminal -e cd "/path/to/folder name/with/spaces"
...
Shell program: "cd /path/to/folder name/with/spaces"
("cd", "/path/to/folder", "name/with/spaces")
System Information
  • Distribution & Version: Arch Linux x86_64
  • Kernel: 5.0.7
  • Qt Version: 5.12.2
  • qtermwidget Version: 0.14.1
  • lxqt-build-tools Version: Unknown. Probably latest...
  • Package version: 0.14.1-1
@yan12125
Copy link
Member

I believe this is the same issue as #335. Unfortunately, the fix appears non-trivial and I haven't had time for a good solution.

@GleammerRay
Copy link

GleammerRay commented Mar 8, 2024

Btw, I know that this is solved in the latest release and all but there's still people sitting with old packages because they aren't getting updated on some distros and I found a very simple way to avoid this problem.

qterminal -e has access to all environment variables so just use that.

E.g. FILE='foo bar' qterminal -e nano '$FILE' opens foo bar.

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

No branches or pull requests

3 participants