From e3f7344551a387653c2271ecc24d95051a04a2d1 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 12 Dec 2015 23:31:20 +0100 Subject: Add initial working directory to settings handler In addition to increasing customizability this change makes it clear that the _working directory_ property only concerns the intial working directory and is not updated if the contained process changes its directory. Note that setting the intial working directory is broken in upstream _QMLTermWidget_ and the appropriate patch [1] is not merged at the time of this commit. [1]: https://github.com/KnairdA/qmltermwidget/tree/initial_working_directory_fix --- src/SettingsHandler.qml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/SettingsHandler.qml') diff --git a/src/SettingsHandler.qml b/src/SettingsHandler.qml index 1b54251..ca5ea6b 100644 --- a/src/SettingsHandler.qml +++ b/src/SettingsHandler.qml @@ -58,15 +58,16 @@ QtObject { property Settings terminal : Settings { category: "terminal" - property int initialLines : 20 - property int frameWidth : 10 - 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" + property int initialLines : 20 + property string initialWorkingDirectory : "$HOME" + property int frameWidth : 10 + 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" } property Settings command : Settings { -- cgit v1.2.3