One week ago I tried to implement the Direct Save protocol on gedit but for some reason I couldn’t find the way to make it work.
The releated bug is: http://bugzilla.gnome.org/show_bug.cgi?id=430798 and the patch: http://bugzilla-attachments.gnome.org/attachment.cgi?id=141835
For some reason when I have to get the name from file-roller, the name I get is “xds.txt” and it should return the name of the file droped from file-roller instead, kind of weird as the func I use for getting this was borrowed from nautilus. Apart from that the patch seems to work fine, it sets the url where I want to make file-roller extract the file and it is extracted ok. If anybody knows how to fix it, help would be appreciated.
The explanation can be found in src/fr-window.c in file-roller source. It’s file-roller which uses xds.txt as an arbitrary filename. I don’t remember the specifics, but iirc it does that because it’s generally not a single file that is being dropped but several files/directories, so what they are interested in is the absolute path where to drop, not the actual filename. What I remember is probably not the real explanation, but I think it was something close to that.
Thanks for your comment, I’ll try to have a look at the file-roller code as you say to try to find something that can help me to get the file/files name that I need.