diff --git a/src/components/Preferences.react.js b/src/components/Preferences.react.js index eacebc4bd..006e3751e 100644 --- a/src/components/Preferences.react.js +++ b/src/components/Preferences.react.js @@ -13,6 +13,7 @@ var Preferences = React.createClass({ useVM: localStorage.getItem('settings.useVM') === 'true', metricsEnabled: metrics.enabled(), terminalShell: localStorage.getItem('settings.terminalShell') || "sh", + terminalPath: localStorage.getItem('settings.terminalPath') || "/usr/bin/xterm", startLinkedContainers: localStorage.getItem('settings.startLinkedContainers') === 'true' }; }, @@ -58,6 +59,13 @@ var Preferences = React.createClass({ }); localStorage.setItem('settings.terminalShell', value); }, + handleChangeTerminalPath: function (e) { + var value = e.target.value; + this.setState({ + terminalPath: value + }); + localStorage.setItem('settings.terminalPath', value); + }, handleChangeStartLinkedContainers: function (e) { var checked = e.target.checked; this.setState({ @@ -66,7 +74,7 @@ var Preferences = React.createClass({ localStorage.setItem('settings.startLinkedContainers', checked ? 'true' : 'false'); }, render: function () { - var vmSettings, vmShutdown, nativeSetting; + var vmSettings, vmShutdown, nativeSetting, linuxSettings; if (process.platform !== 'linux') { // We are on a Mac or Windows @@ -104,6 +112,21 @@ var Preferences = React.createClass({ ); } + if (process.platform === "linux") { + linuxSettings = ( +