You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for issue #1226: onLaunchedWithItems implementation to prevent information loss
This PR implements the solution suggested in issue #1226 to fix the problem with onLaunchedWithItems being prone to losing information about fsentries due to property duplication.
Changes:
Modified launch_app.js to only pass the file UUID to apps after granting the app permission to access the file:
Instead of passing all file properties through the URL query parameters, we now only pass the file UUID
This eliminates the property duplication issue and keeps the URL shorter
Updated UI.js to have onLaunchedWithItems fetch the file information via puter.js:
When an app is launched with a file, it now uses puter.fs.stat() to get the complete file information using the UUID
This ensures that all file properties are consistently retrieved from a single source
Benefits:
More robust approach that eliminates property duplication
Shorter URLs (avoids hitting URL length limits)
Apps get the most up-to-date file information
Consistent with how the rest of the system accesses file information
[ai]
Fix for issue #1226: onLaunchedWithItems implementation to prevent information loss
This PR implements the solution suggested in issue #1226 to fix the problem with
onLaunchedWithItems
being prone to losing information about fsentries due to property duplication.Changes:
Modified
launch_app.js
to only pass the file UUID to apps after granting the app permission to access the file:Updated
UI.js
to haveonLaunchedWithItems
fetch the file information via puter.js:puter.fs.stat()
to get the complete file information using the UUIDBenefits:
Fixes #1226
The text was updated successfully, but these errors were encountered: