Profile-bound custom commands now execute

Rather than starting ksession right away, PreprocessedTerminal now waits
for ApplicationSettings to finish loading custom command settings from
storage. If a custom command is specified, PreprocessedTerminal will
tokenize it and pass it onto ksession as a shell program similar to the
-e option. If both a -e command and a custom command is specified, the
-e version overrides the custom command.
This commit is contained in:
Vincent Wong
2016-03-21 12:55:09 -07:00
parent 674097f672
commit cc57fbdcd5
3 changed files with 85 additions and 2 deletions

View File

@@ -97,6 +97,8 @@ QtObject{
signal terminalFontChanged(string fontSource, int pixelSize, int lineSpacing, real screenScaling, real fontWidth)
signal initializedSettings()
property Loader fontManager: Loader{
states: [
State { when: rasterization == no_rasterization
@@ -463,6 +465,8 @@ QtObject{
fullscreen = true;
showMenubar = false;
}
initializedSettings();
}
Component.onDestruction: {
storeSettings();