/* eslint global-require: 0*/ import React from 'react'; import PropTypes from 'prop-types'; import { Actions } from 'nylas-exports'; import ConfigSchemaItem from './config-schema-item'; import WorkspaceSection from './workspace-section'; import SendingSection from './sending-section'; class PreferencesGeneral extends React.Component { static displayName = 'PreferencesGeneral'; static propTypes = { config: PropTypes.object, configSchema: PropTypes.object, }; _reboot = () => { const app = require('electron').remote.app; app.relaunch(); app.quit(); }; _resetAccountsAndSettings = () => { const rimraf = require('rimraf'); rimraf(AppEnv.getConfigDirPath(), { disableGlob: true }, err => { if (err) console.log(err); else this._reboot(); }); }; _resetEmailCache = () => { Actions.resetEmailCache(); }; render() { return (
sudo apt-get install zenity
).