-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(macos): add set_can_create_directories
#172
feat(macos): add set_can_create_directories
#172
Conversation
Are there any disadvantages of just always enabling it, and not exposing it in public API? |
Not that I know of but seeing that electron decided to provide an explicit option for it, and from experience in Tauri, users always ask for the option. I think we can enable it by default and come back to an API if more users ask for it? |
Now that I look at the linked issue, it seems like it is referring to directory picker, but tauri is stuck on old rfd version that used to not enable create-dir for those. Perhaps I can just do a backport release for the version tauri uses, so it can pin to that instead and get the new directory picker behavior on macos? Would be great to just switch from problematic gtk based rfd to xdg-portal based rfd in tauri and allow it to update to new versions, but that will probably flood the issue tracker with people that don't want to have xdg-portal on their systems (don't ask why some people don't want to have a core system component installed, that's how life on Linux looks like at times XD) |
I think creating directories should still be enabled for file dialogs specially in the save dialog.
That would be really nice, thanks.
I can relate to the pain, developers simply don't want to require their users to have certain dependency installed. Linux users can be masochistic when it comes to reducing the number of packages on their system. |
macOs does that by default for save dialogs I don't mind the additional API afterall, let's merge this as is. I will ping you once I do the backport release. We really have to figure something out long term tho 😄 |
good to know, don't have a macOS to test 😄
yeah, it is something we will need to do before tauri v2 goes into stable |
Decided to just drop the idea of doing backports, I've added zenity fallback for xdg portal backend instead, for people with broken systems. XDG Portal backend is now the default, and GTK3 became opt-in (and will probably be remove in the future) This is now published as 0.14.0, and tauri should be able to switch to it. |
No worries, we will be updating soon, thanks |
ref: tauri-apps/plugins-workspace#949