Branch: refs/heads/Cog Home: https://github.com/OpenSmalltalk/opensmalltalk-vm Commit: cc2dd909045721f6cbf16cb62f5662fe68158021 https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/cc2dd909045721f6cbf... Author: Tobias Pape tobias@netshed.de Date: 2023-12-18 (Mon, 18 Dec 2023)
Changed paths: M platforms/iOS/vm/OSX/SqSqueakOSXView.m.inc
Log Message: ----------- [osx] Fix Drag-n-drop
Old-style `NSFilenamesPboardType` would give an array of (string) file names. New-style `NSPasteboardTypeFileURL` gives exactly one file URL. Also, all file urls are Reference-type urls which we must massage first.
Just a note to the involved - it looks like unix DropPlugin will need rework to be happy in the new Wayland-world. On my Ubuntu-20-box I can drop a file into Squeak, on my Pi 5/Wayland I can't.
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: HALT: No-Op
On 2023-12-18, at 9:45 AM, Tim Rowledge tim@rowledge.org wrote:
Just a note to the involved - it looks like unix DropPlugin will need rework to be happy in the new Wayland-world. On my Ubuntu-20-box I can drop a file into Squeak, on my Pi 5/Wayland I can't.
Hmph. Maybe not a Wayland problem - it turns out there is *no* DropPlugin in the recent armv8 vm packages. Anyone know why? And extra-Hmph; not in the latest x64 unix vm package either.
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: IBLU: Ignore Basic Laws of Universe
On Mon, Dec 18 2023 at 09:56:55 AM -0800, Tim Rowledge tim@rowledge.org wrote:
On 2023-12-18, at 9:45 AM, Tim Rowledge <tim@rowledge.org mailto:tim@rowledge.org> wrote:
Just a note to the involved - it looks like unix DropPlugin will need rework to be happy in the new Wayland-world. On my Ubuntu-20-box I can drop a file into Squeak, on my Pi 5/Wayland I can't.
Hmph. Maybe not a Wayland problem - it turns out there is *no* DropPlugin in the recent armv8 vm packages. Anyone know why? And extra-Hmph; not in the latest x64 unix vm package either.
I don't think that DropPlugin has been included in any of the VMs for a long time, including the traditional interpreter VM. As far as I know it is an obsolete plugin, and based on the rant^h^h^h^hcomment in platforms/unix/plugins/DropPlugin/sqUnixDragDrop.c I would guess that the old DropPlugin might have been replaced by functions in some other plugin. But I don't know how this works so I am totally guessing.
Dave
Hmm. Well in that case I guess it probably *is* a Wayland related issue. I'll have to swizzle things on the Pi 5 to go back to X11 and see.
On 2023-12-18, at 4:48 PM, David T Lewis lewis@mail.msen.com wrote:
On Mon, Dec 18 2023 at 09:56:55 AM -0800, Tim Rowledge tim@rowledge.org wrote:
On 2023-12-18, at 9:45 AM, Tim Rowledge <tim@rowledge.org
wrote:
Just a note to the involved - it looks like unix DropPlugin will need rework to be happy in the new Wayland-world. On my Ubuntu-20-box I can drop a file into Squeak, on my Pi 5/Wayland I can't.
Hmph. Maybe not a Wayland problem - it turns out there is *no* DropPlugin in the recent armv8 vm packages. Anyone know why? And extra-Hmph; not in the latest x64 unix vm package either.
I don't think that DropPlugin has been included in any of the VMs for a long time, including the traditional interpreter VM. As far as I know it is an obsolete plugin, and based on the rant^h^h^h^hcomment in platforms/unix/plugins/DropPlugin/sqUnixDragDrop.c I would guess that the old DropPlugin might have been replaced by functions in some other plugin. But I don't know how this works so I am totally guessing.
Dave
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim "How many Teela Browns does it take to change a lightbulb?” "Stupid question."
Hi Tim,
On Dec 18, 2023, at 9:57 AM, Tim Rowledge tim@rowledge.org wrote:
On 2023-12-18, at 9:45 AM, Tim Rowledge tim@rowledge.org wrote:
Just a note to the involved - it looks like unix DropPlugin will need rework to be happy in the new Wayland-world. On my Ubuntu-20-box I can drop a file into Squeak, on my Pi 5/Wayland I can't.
Hmph. Maybe not a Wayland problem - it turns out there is *no* DropPlugin in the recent armv8 vm packages. Anyone know why? And extra-Hmph; not in the latest x64 unix vm package either.
I did some work for Virtend on Mac & Windows to support launch events but didn’t extend the Unix plugin other than a stub function for the new functionality. If you’re brave have a look at the revision history on platforms/Cross/plugins/DropPlugin/DropPlugin.h and you’ll be able to figure out what I did (wasn’t much). But I’m pretty sure I didn’t disable anything.
_,,,^..^,,,_ (phone)
tim
tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: IBLU: Ignore Basic Laws of Universe
Looks like it is Wayland/X11 stuff. Swapped the Pi 5 back to X, dropping a file in Squeak works.
On 2023-12-18, at 5:51 PM, Eliot Miranda eliot.miranda@gmail.com wrote:
Hi Tim,
On Dec 18, 2023, at 9:57 AM, Tim Rowledge tim@rowledge.org wrote:
On 2023-12-18, at 9:45 AM, Tim Rowledge tim@rowledge.org wrote:
Just a note to the involved - it looks like unix DropPlugin will need rework to be happy in the new Wayland-world. On my Ubuntu-20-box I can drop a file into Squeak, on my Pi 5/Wayland I can't.
Hmph. Maybe not a Wayland problem - it turns out there is *no* DropPlugin in the recent armv8 vm packages. Anyone know why? And extra-Hmph; not in the latest x64 unix vm package either.
I did some work for Virtend on Mac & Windows to support launch events but didn’t extend the Unix plugin other than a stub function for the new functionality. If you’re brave have a look at the revision history on platforms/Cross/plugins/DropPlugin/DropPlugin.h and you’ll be able to figure out what I did (wasn’t much). But I’m pretty sure I didn’t disable anything.
_,,,^..^,,,_ (phone)
tim
tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: IBLU: Ignore Basic Laws of Universe
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: KFP: Kindle Fire in Printer
Correcting myself - the DropPlugin _*is*_ included in the VMs, both old and new. It is being built as an internal plugin. Sorry for confusing the issue!
Dave
On Mon, Dec 18 2023 at 06:19:20 PM -0800, Tim Rowledge tim@rowledge.org wrote:
Looks like it is Wayland/X11 stuff. Swapped the Pi 5 back to X, dropping a file in Squeak works.
On 2023-12-18, at 5:51 PM, Eliot Miranda <eliot.miranda@gmail.com mailto:eliot.miranda@gmail.com> wrote:
Hi Tim,
On Dec 18, 2023, at 9:57 AM, Tim Rowledge <tim@rowledge.org mailto:tim@rowledge.org> wrote:
On 2023-12-18, at 9:45 AM, Tim Rowledge <tim@rowledge.org mailto:tim@rowledge.org> wrote:
Just a note to the involved - it looks like unix DropPlugin will need rework to be happy in the new Wayland-world. On my Ubuntu-20-box I can drop a file into Squeak, on my Pi 5/Wayland I can't.
Hmph. Maybe not a Wayland problem - it turns out there is *no* DropPlugin in the recent armv8 vm packages. Anyone know why? And extra-Hmph; not in the latest x64 unix vm package either.
I did some work for Virtend on Mac & Windows to support launch events but didn’t extend the Unix plugin other than a stub function for the new functionality. If you’re brave have a look at the revision history on platforms/Cross/plugins/DropPlugin/DropPlugin.h and you’ll be able to figure out what I did (wasn’t much). But I’m pretty sure I didn’t disable anything.
_,,,^..^,,,_ (phone)
tim
tim Rowledge; tim@rowledge.org mailto:tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: IBLU: Ignore Basic Laws of Universe
tim
tim Rowledge; tim@rowledge.org mailto:tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: KFP: Kindle Fire in Printer
That does make more sense! It definitely appears to be Wayland related; same VM/image does different things depending on the choice of Wayland/Wayfire/XWayland and old-fashioned-X
On 2023-12-19, at 8:06 AM, David T Lewis lewis@mail.msen.com wrote:
Correcting myself - the DropPlugin is included in the VMs, both old and new. It is being built as an internal plugin. Sorry for confusing the issue!
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim After a number of decimal places, nobody gives a damn.
vm-dev@lists.squeakfoundation.org