From bac3fd5935737381560fd3955e0e528674f05424 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 30 Aug 2015 18:33:41 +0200 Subject: Add launcher program and argument to configuration --- src/SettingsHandler.qml | 2 ++ src/widget/EmbeddedTerminal.qml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/SettingsHandler.qml b/src/SettingsHandler.qml index fd13473..ed008c7 100644 --- a/src/SettingsHandler.qml +++ b/src/SettingsHandler.qml @@ -62,6 +62,8 @@ QtObject { property int fontSize : 8 property string fontFamily : "Monospace" property string colorScheme : "cool-retro-term" + property string launcherProgram : "sh" + property string launcherArgument : "-c" property string overlayBackground : "black" property string overlayFontColor : "white" } diff --git a/src/widget/EmbeddedTerminal.qml b/src/widget/EmbeddedTerminal.qml index d8c89d4..192fcef 100644 --- a/src/widget/EmbeddedTerminal.qml +++ b/src/widget/EmbeddedTerminal.qml @@ -56,8 +56,8 @@ Item { initialWorkingDirectory: item.workingDirectory - shellProgram: 'sh' - shellProgramArgs: [ '-c', program ] + shellProgram: settings.terminal.launcherProgram + shellProgramArgs: [ settings.terminal.launcherArgument, program ] onFinished: { clearScreen(); -- cgit v1.2.3