@@ -7,6 +7,7 @@ var dialog = remote.dialog;
77var  ipcRenderer  =  electron . ipcRenderer ; 
88var  mb  =  remote . getGlobal ( 'MB' ) ; 
99const  {  Menu,  MenuItem }  =  remote 
10+ const  path  =  require ( 'path' ) ; 
1011//var atv = electron.remote.require('./remote').atv; 
1112//var NowPlayingInfo = atv.NowPlayingInfo; 
1213var  nativeTheme  =  electron . remote . nativeTheme ; 
@@ -396,6 +397,9 @@ async function sendCommand(k, shifted) {
396397    //     _connectToATV(); 
397398    // } 
398399} 
400+ function  getWorkingPath ( )  { 
401+     return  path . join ( process . env . APPDATA  ||  ( process . platform  ==  'darwin'  ? process . env . HOME  +  '/Library/Application Support'  : process . env . HOME  +  "/.local/share" ) ,  "ATV Remote" ) ; 
402+ } 
399403
400404function  isConnected ( )  { 
401405    return  atv_connected 
@@ -414,6 +418,7 @@ async function askQuestion(msg) {
414418
415419
416420function  startPairing ( dev )  { 
421+     $ ( "#initText" ) . hide ( ) ; 
417422    //setStatus("Enter the pairing code"); 
418423    $ ( "#results" ) . hide ( ) ; 
419424    $ ( "#pairButton" ) . on ( 'click' ,  ( )  =>  { 
@@ -437,6 +442,7 @@ function submitCode() {
437442} 
438443
439444function  showKeyMap ( )  { 
445+     $ ( "#initText" ) . hide ( ) ; 
440446    $ ( ".directionTable" ) . fadeIn ( ) ; 
441447    var  tvTimer ; 
442448    $ ( "[data-key]" ) . off ( 'mousedown mouseup mouseleave' ) ; 
@@ -551,6 +557,7 @@ function setStatus(txt) {
551557} 
552558
553559function  startScan ( )  { 
560+     $ ( "#initText" ) . hide ( ) ; 
554561    $ ( "#loader" ) . fadeIn ( ) ; 
555562    $ ( "#addNewElements" ) . show ( ) ; 
556563    $ ( "#runningElements" ) . hide ( ) ; 
@@ -732,5 +739,7 @@ try {
732739nativeTheme . on ( 'updated' ,  themeUpdated ) ; 
733740
734741$ ( function ( )  { 
742+     var  wp  =  getWorkingPath ( ) ; 
743+     $ ( "#workingPathSpan" ) . html ( `<strong>${ wp }  ) 
735744    ipcRenderer . invoke ( 'isWSRunning' ) 
736745} ) 
0 commit comments