From 539a5ed74fab7091a08967faaa709c160b5fd2ca Mon Sep 17 00:00:00 2001 From: Filippo Scognamiglio Date: Fri, 10 Oct 2014 15:43:38 +0200 Subject: [PATCH] Add missing arguments when -i and -l when starting under OSX. Thanks to sirgatez. --- konsole-qml-plugin/src/Session.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/konsole-qml-plugin/src/Session.cpp b/konsole-qml-plugin/src/Session.cpp index a3aeb68..146d4f7 100644 --- a/konsole-qml-plugin/src/Session.cpp +++ b/konsole-qml-plugin/src/Session.cpp @@ -307,6 +307,13 @@ void Session::run() QString argsTmp(_arguments.join(" ").trimmed()); QStringList arguments; arguments << exec; + +#ifdef Q_OS_OSX + // Fix osx initial behavior with -i (interactive) and -l (login). + arguments.append("-i"); + arguments.append("-l"); +#endif + if (argsTmp.length()) arguments << _arguments;