From kde-bugs-dist Sun Apr 30 23:23:47 2006 From: "Kurt V.Hindenburg" Date: Sun, 30 Apr 2006 23:23:47 +0000 To: kde-bugs-dist Subject: [Bug 125977] When running 'konsole /path/to/script.sh', Message-Id: <20060430232347.30919.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=114643944203034 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=125977 ------- Additional Comments From kurt.hindenburg kdemail net 2006-05-01 01:23 ------- SVN commit 536013 by hindenburg: Verify that the command is executable for '-e .' CCBUG: 125977 M +15 -2 session.cpp --- trunk/KDE/kdebase/apps/konsole/konsole/session.cpp #536012:536013 @ -7,6 +7,9 @ #include #include #include +#include +#include +#include #include #include @ -128,8 +131,18 @ void TESession::run() { - //kDebug(1211) << "Running the session!" << pgm << "\n"; - //pgm = "pine"; + // Upon a KPty error, there is no description on what that error was... + // Check to see if the given program is executable. + QString exec = QFile::encodeName(pgm); + exec = KRun::binaryName(exec, false); + exec = KShell::tildeExpand(exec); + QString pexec = KGlobal::dirs()->findExe(exec); + if ( pexec.isEmpty() ) { + kdError()<<"can not execute "<dcopClient()->appId(); QString cwd_save = QDir::currentPath();