Skip to content
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

Granite.ActionSheet #56

Closed
danirabbit opened this issue Nov 18, 2019 · 8 comments · May be fixed by #38
Closed

Granite.ActionSheet #56

danirabbit opened this issue Nov 18, 2019 · 8 comments · May be fixed by #38

Comments

@danirabbit
Copy link
Member

danirabbit commented Nov 18, 2019

with app sandboxing, we have a couple of problems to keep in mind for the near future:

  • Apps will lose access to seeing which other apps are installed. This means "Open in" submenus will no longer be possible.
  • Apps will lose access to contractor. This means no "Other Actions" sub menu either.

I'd like to propose that in preparation for this, we create a Granite.ActionSheet as a protoype for an eventual portal implementation.

This should be a kind of universal dialog that gives the user options for opening a file in another application or taking action upon it via contractor actions.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@danirabbit
Copy link
Member Author

Prior art in iPadOS 13:

iOS-13-Photos-share-items-003

Android 10:

android-10-sharesheet

@cassidyjames
Copy link

I think this could be a useful pattern for a more "sharing" UI, but it feels extremely heavy-weight UI-wise to replace an open-in context menu. So I'm not sure how I feel about it there, i.e. in a context menu in Code or Files to quickly pop a file open in another app.

Wouldn't it still be possible to provide this data over DBus or something to a menu so the app could display it how it wants?

@danirabbit danirabbit mentioned this issue Nov 9, 2021
4 tasks
@danirabbit
Copy link
Member Author

@cassidyjames not really in a way that couldn't be abused. You could as an app developer just throw text/plain at the API and get a list of installed apps and send it over the network and never do anything with it in the UI

@cassidyjames
Copy link

@danrabbit lol apparently within the past two years I came around to this idea. 😅 Yeah this makes sense, especially thinking about how we have the AppChooser portal but could use something more specifically for a “sharing” sort of context.

@danirabbit
Copy link
Member Author

Transferring to Portals since we're already in the flatpak sandbox future

@danirabbit danirabbit transferred this issue from elementary/granite Jun 16, 2022
@alice-mkh
Copy link

Would be nice to have a contractor-like system cross-desktop btw :)

@marbetschar
Copy link
Member

For Reference: There is #49 which is related to this.

@danirabbit
Copy link
Member Author

Yeah sorry, this should be closed as a duplicate of #49

@Exalm yeah, I started a conversation at LAS a couple years ago about extending the .desktop spec to include actions which take a file as an argument and it seemed like nobody was opposed. It just needs someone to sit down and work on it. But I think that would probably be the smoothest replacement

@danirabbit danirabbit closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

4 participants