nik012003 / ripdrag

Drag and Drop utilty written in Rust and GTK4
GNU General Public License v3.0
496 stars 17 forks source link

Using an MacOS and Chrome (Gmail) doesn't attach the file #19

Open farzadmf opened 1 year ago

farzadmf commented 1 year ago

Hi there,

This project is really what I needed on my Mac, and I was super excited about it, and I installed it immediately.

Tried to test it to attach a file in browser's Gmail (using Chrome), and when I drag the file, it basically pastes the path to the file, instead of attaching it to the email.

If I do the same using Finder (MacOS's file manager), it properly attaches the file.

I was wondering if this is something that is a known issue/can be fixed.

Thank you

nik012003 commented 1 year ago

Yes, I am aware of this. Unfortunately, I confirmed that this is an issue with gtk4 iteself in both MacOS and Windows systems. As soon as the gtk fixes it, it should work automatically on ripdrag.

farzadmf commented 1 year ago

Ah, that's too bad. Do you know if it's on their roadmap? Any issue I can track?

nik012003 commented 1 year ago

I didn't see one open unfortunately, plese open one here https://gitlab.gnome.org/GNOME/gtk/-/issues if you feel like it. I will try to fill the issue up with more information once I'll go back to macos... In the meanwhile I pushed some of the tests I was doing with on the macos-tests branch

xxyxxyxyx1 commented 3 months ago

Is there an open issue GTK4 issue to follow? I do not know what the problem is with GTK4, so I do not know what to search on their issue tracker.

nik012003 commented 3 months ago

Is there an open issue GTK4 issue to follow? I do not know what the problem is with GTK4, so I do not know what to search on their issue tracker.

I don't think there is one. I don't have a working macos install to reproduce, but you should be able to repro and report the bug by compiling gtk4 demos and testing drag and drop there.

ilyagr commented 2 months ago

I ended up using https://eternalstorms.at/yoink/mac/ for now. It's a little too elaborate for my liking, is not open-source, and has a nag screen until you pay, but works. See "Tip number 5" in https://eternalstorms.at/yoink/mac/tips/.

Mellbourn commented 2 months ago

@ilyagr that "Tip number 5", i.e. copying a file to clipboard in the terminal, can be achieved with a free script, e.g.

copy(){ osascript -e{'on run{a}','set the clipboard to posix file a',end} "$(greadlink -f -- "$1")";}

(source: https://apple.stackexchange.com/a/15484/12219)