restore --disable-gpu (cli only) & minor fix
This commit is contained in:
parent
03e1bd1557
commit
7803b6d737
3 changed files with 5 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ class UiTree extends UiWidget {
|
|||
|
||||
Panel = require('../widgets/containers/panel')
|
||||
Matrix = require('../widgets/containers/matrix')
|
||||
Keyboard = require('../widgets/matrices/keyboard')
|
||||
Keyboard = require('../widgets/containers/keyboard')
|
||||
widgetManager = require('../managers/widgets')
|
||||
|
||||
super(options)
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
'disable-vsync':{type:'boolean',describe:'disable gui\'s vertical synchronization', restart: true},
|
||||
// 'disable-gpu':{type:'boolean',describe:'disable hardware acceleration', restart: true},
|
||||
'force-gpu':{type:'boolean',describe:'ignore chrome\'s gpu blacklist', restart: true},
|
||||
'read-only':{type:'boolean',describe:'disable session editing and session history changes'},
|
||||
'remote-saving':{type:'string',describe:'disable remote session saving for hosts that don\'t match the regular expresion',
|
||||
|
|
@ -63,6 +62,9 @@ module.exports = {
|
|||
'remote-root':{type:'string', describe:'set remote file browsing root folder', file:{folder: true}},
|
||||
'instance-name':{type:'string',describe:'used to differenciate multiple instances in a zeroconf network'},
|
||||
'fullscreen':{type:'boolean', describe:'launch in fullscreen mode (only affects the default client gui)'},
|
||||
|
||||
// cli only
|
||||
'disable-gpu':{type:'boolean',describe:'disable hardware acceleration', launcher: false},
|
||||
'inspect':{type:'boolean', describe:'enable node/electron inspector', launcher: false},
|
||||
'cache-dir':{type:'string', describe:'override default cache directory', launcher: false},
|
||||
'config-file':{type:'string', describe:'override default config file (defaults to cache-dir/config.json)', launcher: false}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ delete argv.$0
|
|||
|
||||
// are we in a terminal ?
|
||||
var cli = false,
|
||||
ignored = ['_', '$0', 'no-sandbox', 'noSandbox', 'cache-dir', 'cacheDir', 'config-file', 'configFile']
|
||||
ignored = ['_', '$0', 'no-sandbox', 'noSandbox', 'cache-dir', 'cacheDir', 'config-file', 'configFile', 'disable-gpu', 'disableGpu', 'inspect']
|
||||
|
||||
for (i in argv) {
|
||||
if (!ignored.includes(i) && (argv[i]!=undefined && argv[i]!==false)) cli = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue