This repository was archived by the owner on Oct 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -86,28 +86,9 @@ _loadTheme(require(path.join(themesDir, settings.theme+".json")));
86
86
// Startup boot log
87
87
let resumeInit , initUI , initMods , initGreeter ;
88
88
let bootScreen = document . getElementById ( "boot_screen" ) ;
89
- let log ;
89
+ let log = fs . readFileSync ( path . join ( __dirname , 'assets/misc/boot_log.txt' ) ) . toString ( ) . split ( '\n' ) ;
90
90
let i = 0 ;
91
- // [EXPERIMENTAL] Show dmesg as boot log on *nix
92
- if ( process . platform === "linux" || process . platform === "darwin" ) {
93
- let su = require ( "sudo-prompt" ) ;
94
- su . exec ( "dmesg -HtP" , {
95
- name : "eDEX UI Log Display" ,
96
- icns : "src/icons/icon.icns"
97
- } , ( err , stdout , stderr ) => {
98
- if ( err ) {
99
- log = fs . readFileSync ( path . join ( __dirname , 'assets/misc/boot_log.txt' ) ) . toString ( ) . split ( '\n' ) ;
100
- displayLine ( ) ;
101
- } else {
102
- log = stdout . toString ( ) . split ( '\n' ) ;
103
- log = log . slice ( 0 , 150 ) ; // Max 150 lines
104
- displayLine ( ) ;
105
- }
106
- } ) ;
107
- } else {
108
- log = fs . readFileSync ( path . join ( __dirname , 'assets/misc/boot_log.txt' ) ) . toString ( ) . split ( '\n' ) ;
109
- displayLine ( ) ;
110
- }
91
+ displayLine ( ) ;
111
92
112
93
function displayLine ( ) {
113
94
if ( log [ i ] === undefined ) {
You can’t perform that action at this time.
0 commit comments