Giter Club home page Giter Club logo

Comments (13)

sunshinejr avatar sunshinejr commented on May 20, 2024

I'd love to see this one as well.

from gifski.

issuehunt-oss avatar issuehunt-oss commented on May 20, 2024

@issuehunt has funded $100.00 to this issue.


from gifski.

AnderGoig avatar AnderGoig commented on May 20, 2024

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?

from gifski.

sunshinejr avatar sunshinejr commented on May 20, 2024

@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.

from gifski.

koraykoska avatar koraykoska commented on May 20, 2024

I can do this if it is still relevant.

from gifski.

sunshinejr avatar sunshinejr commented on May 20, 2024

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

from gifski.

koraykoska avatar koraykoska commented on May 20, 2024

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

from gifski.

sunshinejr avatar sunshinejr commented on May 20, 2024

@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).

from gifski.

koraykoska avatar koraykoska commented on May 20, 2024

from gifski.

koraykoska avatar koraykoska commented on May 20, 2024

from gifski.

sindresorhus avatar sindresorhus commented on May 20, 2024

@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.

from gifski.

koraykoska avatar koraykoska commented on May 20, 2024

from gifski.

issuehunt-oss avatar issuehunt-oss commented on May 20, 2024

@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

from gifski.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.