File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 208208 // some linux distros may not have Documents folder. so we use the home folder
209209 // https://github.com/phcode-dev/phoenix/issues/1729
210210 window . _tauriBootVars . documentDir = results [ 4 ] . value ;
211- } else {
212- console . error ( "unable to determine user documents dir, defaulting to app data dir documentdir :" ,
211+ } else if ( results [ 2 ] . status === "fulfilled" ) {
212+ console . error ( "Unable to determine user documents dir, defaulting to app data dir as document dir :" ,
213213 results [ 1 ] . reason , "home folder error: " , results [ 4 ] . reason ) ;
214214 window . _tauriBootVars . documentDir = results [ 2 ] . value ;
215+ } else {
216+ alert ( "Could not resolve user documents directory. \nPhoenix Code cannot start." ) ;
217+ }
218+
219+ if ( results [ 2 ] . status === "fulfilled" ) {
220+ window . _tauriBootVars . appLocalDir = results [ 2 ] . value ;
221+ } else {
222+ alert ( "Could not resolve Application Data directory. \nPhoenix Code cannot start." ) ;
215223 }
216224
217225 // For tests, documents dir is localAppDataDir/testDocuments to keep user documents garbage free for tests
Original file line number Diff line number Diff line change @@ -214,8 +214,7 @@ function confirmReload(title, message) {
214214 } ) ;
215215 copyButton . textContent = 'Copy Error' ;
216216 getHelpButton . textContent = 'Get Help' ;
217- reloadButton . textContent = 'Reload Page' ;
218-
217+ reloadButton . textContent = 'Restart App' ;
219218 // Styling for visibility
220219 // Define common styles for buttons
221220 const buttonStyles = {
You can’t perform that action at this time.
0 commit comments