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

Share extension #81

Closed
sindresorhus opened this issue May 11, 2019 · 13 comments · Fixed by #156
Closed

Share extension #81

sindresorhus opened this issue May 11, 2019 · 13 comments · Fixed by #156
Assignees
Labels
enhancement New feature or request 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt help wanted Extra attention is needed

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented May 11, 2019

Issuehunt badges

I think it would be useful to create a Share extension for Gifski. That way, any video/screen recording app with a system "Share" button would be able to send a video to Gifski.

This would be especially useful for the built-in macOS screen recording feature. When you're done recording there, you get a thumbnail at the bottom-right of the screen. If you click it, a preview window opens, and in the toolbar, there's a "Share" button. So the user could then quickly send it to Gifski after recording without even having to save the video file.

Thoughts?


IssueHunt Summary

ybrin ybrin has been rewarded.

Backers (Total: $100.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

@sunshinejr
Copy link
Contributor

I'd love to see this one as well.

@sindresorhus sindresorhus added enhancement New feature or request help wanted Extra attention is needed labels Jun 22, 2019
@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label Jun 22, 2019
@issuehunt-oss
Copy link

issuehunt-oss bot commented Jun 22, 2019

@issuehunt has funded $100.00 to this issue.


@AnderGoig
Copy link

I've been doing some testing and haven't found a way to open the host app from the Share extension. There is an open(:url) method but I couldn't make it work with this extension.

Was that the idea, or am I missing something?

@sunshinejr
Copy link
Contributor

@AnderGoig we had a similar problem on iOS few years back. From what I remember, you had to climb the responder chain and stop once you got the host app. Not sure if it's gonna work on macOS, but worth a try.

@koraykoska
Copy link
Contributor

I can do this if it is still relevant.

@sunshinejr
Copy link
Contributor

@Ybrin yes I think it's still relevant so go ahead 👍

@koraykoska
Copy link
Contributor

Ok I got this but we need to discuss how exactly the process should behave.

Share extensions normally have a custom UI and don't really open the master app to process the shared item. There is a workaround I'm currently using in order to open Gifski and close the share extension immediately but it's more a hack...

How do you want to do this? Should I stick with the hack and just open Gifski with a url and let it handle the rest or should we handle this differently?

If we're going ahead with the "hack" I need to find a way to pass the video file over to Gifski. The url becomes invalid once the share extension is closed as it's not a url to the original location but rather to a tmp folder containing a symlink or something. I guess I will have to copy it over to somewhere and pass this url to Gifski or something. If you have any ideas or know what's happening here let me know please.

@sindresorhus @sunshinejr

@sunshinejr
Copy link
Contributor

@Ybrin UserDefaults with custom suite name? I think this should work between extension & an app. If the hack is working properly, I wouldn't mind it (but leaving the decision to Sindre).

@koraykoska
Copy link
Contributor

koraykoska commented Oct 7, 2019 via email

@koraykoska
Copy link
Contributor

koraykoska commented Oct 7, 2019 via email

@sindresorhus
Copy link
Owner Author

sindresorhus commented Oct 7, 2019

@Ybrin Could you use App Groups to copy the video into a shared container that Gifski can access? https://developer.apple.com/documentation/foundation/filemanager/1412643-containerurl

Another possibility it to just pass raw bytes into Gifski from the extension.

@koraykoska
Copy link
Contributor

koraykoska commented Oct 7, 2019 via email

@issuehunt-oss
Copy link

issuehunt-oss bot commented Nov 10, 2019

@sindresorhus has rewarded $90.00 to @ybrin. See it on IssueHunt

  • 💰 Total deposit: $100.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $10.00

@issuehunt-oss issuehunt-oss bot added 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt and removed 💵 Funded on Issuehunt This issue has been funded on Issuehunt labels Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants