@@ -13,11 +13,9 @@ import { isAppDev, isDev } from './utils/is_dev';
1313import log from 'electron-log' ;
1414import { FirebaseService , SessionStatus } from './utils/firebase' ;
1515import mitchell_importer from './utils/mitchell_importer' ;
16- import os from 'os' ;
1716import { spawn } from 'child_process' ;
1817
1918const INPUT_SPEED_STORAGE_KEY = 'inputSpeed' ;
20- const downloadFolderPath = path . join ( os . homedir ( ) , 'Downloads' , 'FIT-Mitchell-Cloud-RO-Import-Tool\\FIT.bat' ) ;
2119
2220if ( isDev ( ) && isAppDev ( app ) ) {
2321 // eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -64,14 +62,14 @@ class Main {
6462 const url = getCustomProtocolUrl ( argv ) ;
6563 if ( argv . some ( ( url ) => url . includes ( 'openVBS' ) ) ) {
6664 try {
67- const bat = spawn ( downloadFolderPath , [ ] , { windowsHide : true } ) ;
65+ const bat = spawn ( 'C:\\FIT-Mitchell-Cloud-RO-Import-Tool\\FIT.bat' , [ ] , { windowsHide : true } ) ;
6866 bat . on ( 'close' , ( code ) => {
6967 log . info ( `Child process exited with code ${ code } ` ) ;
7068 app . quit ( ) ;
7169 } ) ;
7270 return ;
7371 } catch ( error ) {
74- dialog . showErrorBox ( 'Error' , 'The specified file was not found: Downloads \\FIT-Mitchell-Cloud-RO-Import-Tool\\FIT.bat' ) ;
72+ dialog . showErrorBox ( 'Error' , 'The specified file was not found: C: \\FIT-Mitchell-Cloud-RO-Import-Tool\\FIT.bat' ) ;
7573 }
7674 }
7775 this . finalUrl = url ;
0 commit comments