Summary: | konsole cannot open cmd.exe when windows isn´t installed on C:-drive | ||
---|---|---|---|
Product: | kde-windows | Reporter: | Antti Aalto <antti.aalto.10> |
Component: | general | Assignee: | KDE-Windows <kde-windows> |
Status: | RESOLVED LATER | ||
Severity: | normal | CC: | andriusmao, ps_ml, zerozeroraz |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: |
Description
Antti Aalto
2009-07-07 15:09:46 UTC
yes, this is to be expected, the patch for konsole is still very primitive and konsole far from stable. one note: somehow konsolepart tries to use /bin/sh under wine, but cannot find it. how about using getenv("PATH") [or getenv_s] in Session.cpp and then searching which dir in %PATH% contains cmd.exe? Btw, why isn't $SHELL being used on non-Windows? oh, nevermind, $SHELL is being used in both windows and non-windows. (should %SHELL% be used in windows? How about %COMSPEC% [ http://en.wikipedia.org/wiki/ComSpec ] ? ) Actually, Windows doesn't have %SHELL% (at least my version of XP doesn't). It does have, however, %COMSPEC%, which is probably the official way to do it. MSYS sets $SHELL as "/bin/sh" and konsole gets weird behaviour when ran from it ( e.g.: scrolling bar appears in left) wine reuses native $SHELL variable causing an incompatibility when trying to run native /bin/sh So I believe qgetenv("COMSPEC") would work better than qgetenv("SHELL") in this case. *** Bug 201237 has been marked as a duplicate of this bug. *** Since there is currently no work going on, I'd close this bug. |