gpilab / framework

The GPI framework provides the canvas for graphically assembling algorithms.
Other
20 stars 8 forks source link

Drag and Drop is broken on macOS #13

Closed aganders3 closed 5 years ago

aganders3 commented 5 years ago

Dragging and dropping files onto the canvas no longer works in macOS. I am not sure when this broke (if it was a change in Qt or OS X), but it seems the URL from the drag event is a File reference URL.

This is apparently fixed in Qt5 but I think abandoned for Qt4. #11 will kind of fix this, in a way, but not for anyone who wants/needs to stay on Qt4. There are some workarounds posted, but I don't really like them. The easiest way (without adding a dependency, or updating to Qt5) seems to be to use the following snippet to call and AppleScript to translate the path:

osascript -e 'get posix path of posix file "file:///.file/id=123.456"'

Any thoughts?

aganders3 commented 5 years ago

This seems to be solved for me after updating to Mojave.