mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 12:15:27 +00:00
Shell path is not hardcoded anymore but retrieved by /bin/bash
This commit is contained in:
parent
2e63dcaecf
commit
209a122c46
@ -67,9 +67,14 @@ Session *KSession::createSession(QString name)
|
||||
* By setting it to $SHELL right away we actually make the first filecheck obsolete.
|
||||
* But as iam not sure if you want to do anything else ill just let both checks in and set this to $SHELL anyway.
|
||||
*/
|
||||
session->setProgram("/bin/bash");
|
||||
|
||||
//session->setProgram(getenv("SHELL"));
|
||||
//cool-old-term: There is another check in the code. Not sure if useful.
|
||||
|
||||
QString envshell = getenv("SHELL");
|
||||
QString shellProg = envshell != NULL ? envshell : "/bin/bash";
|
||||
session->setProgram(shellProg);
|
||||
|
||||
//session->setProgram();
|
||||
|
||||
QStringList args("");
|
||||
session->setArguments(args);
|
||||
|
Loading…
x
Reference in New Issue
Block a user