-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
exec command doesn't strip trailing spaces #521
Comments
Related to #519? |
It's been happening for a long time, I've only now made an issue for it. The top of the log says
which is that merge commit |
Got it. I'm pretty sure exec just runs the command with sh, but worth double checking. |
exec will run it as I would argue that it's wrong to run Unless this should be a valid way to use exec: |
I'm inclinded to agree with @mikkeloscar on this one. |
Closing as intended behavior. |
The problem is on Ubuntu 15.10 using the default i3-dmenu-desktop I cannot open firefox, gedit, libreoffice, or any app that takes an optional parameter. The only way I've been able to run most apps is by opening a terminal and running the command from there which is very frustrating Sway's handling of exec is incompatible with i3 and scripts that run While I agree the usage of quoting is questionable, the fact that i3's exec command, i3-dmenu-desktop (and maybe other launchers), and peoples configs, scripts, and apps assume that Here's the logs of trying to run those apps. I tested all of the commands with the same quoting under i3 and they worked fine
|
Well, if it's not the behavior of i3, I'll concede. I'd consider that a failing of i3, for what it's worth. |
I see this as an opportunity to correct a poor design choice. It seems to be a single line patch to fix the behavior of I'll make a PR for |
If it gets merged, we're golden, but I'm not going to break backwards compatability with i3 over this if necessary. |
It turns out that the way i3 handles exec arguments is more crazy than I thought so my PR won't work because it breaks some edge cases in i3. |
Closed in favor of i3/i3#2329 |
Reproducible for a while, but just tested on freshly built master of WLC and sway
The default firefox.desktop file contains this entry
Exec=firefox %u
When running from dmenu the following command gets sent
i3-msg 'exec "firefox "'
Under i3 this opens firefox. Under
sway -v -d
this is in the logPresumably its failing because it's trying to run a binary called
firefox
instead offirefox
. I can't imagine a process where ending or starting spaces not inside quotes are relevant. Even bash strips out spacesThe text was updated successfully, but these errors were encountered: