miguelpruivo / flutter_file_picker

File picker plugin for Flutter, compatible with mobile (iOS & Android), Web, Desktop (Mac, Linux, Windows) platforms with Flutter Go support.
MIT License
1.3k stars 648 forks source link

FilePicker should display the home directory of the user on MacOS in a sandbox environement #1542

Open stephane-archer opened 1 month ago

stephane-archer commented 1 month ago

When using String? selectedDirectory = await FilePicker.platform.getDirectoryPath(); on MacOS with the security sandbox enabled (necessary for shipping on the AppStore) the home directory is replaced by a Data folder located in ~/Library/Containers/MyAppName/Data/

This is the home environment set by the OS for the container, allowing the app to access only files in this container and selected files by the user (using FilePicker)

Screenshot 2024-07-05 at 12 33 49

FilePicker is a dialog for the users that allows the user to access any file, it should not care if the app is in a sandbox environment and should display the user's home directory, not the sandbox home directory

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 7 days with no activity.

stephane-archer commented 1 month ago

No

Best Regards,

Stephane Archer

Le sam. 13 juil. 2024 à 03:50, github-actions[bot] @.***> a écrit :

This issue is stale because it has been open for 7 days with no activity.

— Reply to this email directly, view it on GitHub https://github.com/miguelpruivo/flutter_file_picker/issues/1542#issuecomment-2226699750, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWX4PJAXHRQXFRNYA73WH3ZMCBVVAVCNFSM6AAAAABKM7FZEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRWGY4TSNZVGA . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 7 days with no activity.

stephane-archer commented 1 month ago

come on!!!!

stephane-archer commented 1 month ago

@miguelpruivo

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open for 7 days with no activity.

stephane-archer commented 3 weeks ago

@miguelpruivo

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 7 days with no activity.

stephane-archer commented 1 week ago

@miguelpruivo

github-actions[bot] commented 3 days ago

This issue is stale because it has been open for 7 days with no activity.