-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[OSX] App Store Sandbox Bookmarks API #6540
Conversation
usage of the API:
|
Feature is done, but not tested. I will integrate result nuget to our app, our QA will test build, I will fix issues, and repeat until this will be production-ready. PS: Next must-have feature we will need and develop in the future - is support of in-app purchases. |
@kekekeks it's a big chance that this issue is known, but in case it's not, I want to note that failed run = https://dev.azure.com/AvaloniaUI/AvaloniaUI/_build/results?buildId=15467&view=results |
Yes, this is a known issue.If you know why this can happen we would be glad to know |
Linux has something similar for sandboxed apps https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-org.freedesktop.portal.FileChooser but I don't see anything resembling bookmarks. Those might be tracked by the sandbox automatically. |
/// This parameter enables <see cref="Application.SandboxBookmarkAdded"/> event. | ||
/// It's called when a user selects a document in OpenFileDialog or SaveFileDialog or via <see cref="Application.UrlsOpened"/> event. | ||
/// </summary> | ||
public bool AppStoreSandbox { get; set; } = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not really familiar with macos sandboxing, but do we need this property? Is it a problem having always enabled event for sandbox? I assume it just will never be called in non-sandboxed app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before calling this event I'm creating a sandbox bookmark for selected path from NSSavePanel/NSOpenPanel, I did not test it, but I think not calling sandbox apis in not sandboxed app is a good idea.
/// <summary> | ||
/// File Path of the Bookmark | ||
/// </summary> | ||
string Url { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type "string" but name is "Url". Should it be "Uri" type with "file://" protocol?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though, nevermind, we already have the same in https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls/UrlOpenedEventArgs.cs
Closing due to inactivity and merge conflicts. Please ping me if you're gonna work on this again. |
To be continued in #7234 |
What does the pull request do?
Adds an API to work with App Store Sandbox Bookmarks. More info here #6537