FLTK logo

Re: [fltk.coredev] RFC: about DnD of filenames to an FLTK app

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: RFC: about DnD of filenames to an FLTK app Manolo Mar 07, 2023  
 

Le lundi 6 mars 2023 à 17:52:49 UTC+1, Albrecht Schlosser a écrit :

Here are some examples, created with three different file managers (nemo, nautilus, thunar) and the FLTK editor example program in Wayland and/or X11 mode:


nemo DND to FLTK editor in Wayland mode:
davs://info%40<my_domain>@webdav.<my_cloud>/users/<my_domain>/fltk/glpuzzle.png
davs://info%40<my_domain>@webdav.<my_cloud>/users/<my_domain>/fltk/keyboards.png
nautilus DND to FLTK editor in Wayland mode:
file:///run/user/1000/gvfs/dav:host=webdav.<my_cloud>,ssl=true,user=info%2540<my_domain>/users/<my_domain>/fltk/glpuzzle.png
file:///run/user/1000/gvfs/dav:host=webdav.<my_cloud>,ssl=true,user=info%2540<my_domain>/users/<my_domain>/fltk/keyboards.png
thunar: No DND and no copy/paste to editor with in Wayland mode
thunar DND to FLTK editor in x11 mode (see note 2 below):
file:///run/user/1000/gvfs/dav:host=webdav.<my_cloud>,ssl=true,user=info%2540<my_domain>/users/<my_domain>/bilder/Screenshot%20from%202020-05-30%2021-20-16.png
file:///run/user/1000/gvfs/dav:host=webdav.<my_cloud>,ssl=true,user=info%2540<my_domain>/users/<my_domain>/bilder/Screenshot%20from%202020-12-22%2022-52-41.png
thunar copy-paste to FLTK editor in x11 mode (see note 2 below):
davs://info%40<my_domain>@webdav.<my_cloud>/users/<my_domain>/bilder/Screenshot%20from%202020-05-30%2021-20-16.png
davs://info%40<my_domain>@webdav.<my_cloud>/users/<my_domain>/bilder/Screenshot%20from%202020-12-22%2022-52-41.png
(End of examples)

I'm afraid these examples didn't use the last code for Wayland which changed yesterday.
Wayland now produces the same as Windows and macOS, that is pathnames, one per line, except for special
prefixes such as "davfs://" that produce as in these examples.

There's something strange in some encoded strings visible above such as "user=info%2540<my_domain>" .
This seems to have been encoded twice, and thus to require being decoded twice to come out correctly.
1st decoding: %25 gives % because 0x25 is the codepoint of %
2nd decoding: %40 gives @ because 0x40 is the codepoint of @
Final result: user-info@<my_domain>

The correct encoding in one go I would have expected to see is "user-info%40<my_domain>".


 

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/b39f7d6e-8d12-4554-9d14-d8512f5e531bn%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.