-
Notifications
You must be signed in to change notification settings - Fork 40
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
cmd 里面exe路径带空格无法运行 #37
Comments
本来设置path的用途就是用来下面那种用法的。 这个错误貌似比较诡异。亏你能测出来,不过暂时不想修,其实可以算作特性的那种。 真实原因是,关于working_directory的,当它会空是它会继承自path。如果path已经为空,那么working_directory就真的为空了。 下面这两种都可以正常运行:
以及
修复方法也是有的,尝试在path为空时,从cmd提取目录。 但是这里有一个麻烦之处在于cmd里面会含有参数, 比如这种 |
可以测试下这个新版本 |
新版本, 只设置cmd(带绝对路径) 另外2个不设置可以跑了, 不过带上cmd 带上配置文件后就不行了. 最后发现, 不需要让path为空. 设path为上一级目录就能正常工作了
|
感觉上, 而且带配置的目录识别基本上无解的,具有二义性。至于是否支持引号,我也不知道。o(╯□╰)o 比如 感觉你用出了不得了的用法了^_^ 点提交前,又看了下你的回复。配置文件相对目录,实际上是相对的working_directory,本次修改后改成从cmd提取了,所以working_directory变成绝对目录了。也许让working_directory识别
这种感觉比你上面的要稍微直观一点儿。晚上我再看看怎么改成这个逻辑。 感觉要在注释里面加几个你提出来的这几种特殊用法了o(╯□╰)o |
可以试下新的working_directory符号 如果有空,参考这个wiki,暂时我还不敢发布正式版,还需要补内置的文档。 https:/rexdf/CommandTrayHost/wiki/path-cmd-working_directory的隐式转换规则 下载地址 |
试了下最新的. working_directory 设成
|
|
最新版本工作正常
|
理论上也应该正常才对 |
试了下, 这种也可以正常工作 |
无法运行
包了
"
号也不行path 里面带空格的正常
The text was updated successfully, but these errors were encountered: