@@ -1046,31 +1046,23 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) {
10461046 ) ;
10471047 }
10481048
1049- // Check for Terminal Home Directory storage
10501049 try {
1051- const isTerminalInstalled = await Terminal . isInstalled ( ) ;
1052- if ( typeof Terminal !== "undefined" && isTerminalInstalled ) {
1053- const isTerminalSupported = await Terminal . isSupported ( ) ;
1054-
1055- if ( isTerminalSupported && isTerminalInstalled ) {
1056- const terminalHomeUrl = cordova . file . dataDirectory + "alpine/home" ;
1057-
1058- // Check if this storage is not already in the list
1059- const terminalStorageExists = allStorages . find (
1060- ( storage ) =>
1061- storage . uuid === "terminal-home" ||
1062- storage . url === terminalHomeUrl ,
1063- ) ;
1050+ const terminalPublicUrl = cordova . file . dataDirectory + "public" ;
10641051
1065- if ( ! terminalStorageExists ) {
1066- util . pushFolder ( allStorages , "Terminal Home" , terminalHomeUrl , {
1067- uuid : "terminal-home" ,
1068- } ) ;
1069- }
1070- }
1052+ // Check if this storage is not already in the list
1053+ const terminalPublicStorageExists = allStorages . find (
1054+ ( storage ) =>
1055+ storage . uuid === "terminal-public" ||
1056+ storage . url === terminalPublicUrl ,
1057+ ) ;
1058+
1059+ if ( ! terminalPublicStorageExists ) {
1060+ util . pushFolder ( allStorages , "Terminal Public" , terminalPublicUrl , {
1061+ uuid : "terminal-public" ,
1062+ } ) ;
10711063 }
1072- } catch ( error ) {
1073- console . error ( "Error checking Terminal installation: " , error ) ;
1064+ } catch ( err ) {
1065+ console . error ( "Error while adding public directory " , err ) ;
10741066 }
10751067
10761068 try {
0 commit comments