Small change to FAQ "Q: Nautilus to Gtk2 Drag-n-Drop"

I tested the nautilus drag'n drop capabilities and it didn't work as I
expected. I tried to hunt down my problem yesterday, but today I found
the problem. The provided List from nautilus is not just newline
seperated, there is also a carriage return at the end of each line.

So changing

my @uris = split /\n/, $data->data;


my @uris = split /\r\n/, $data->data;

worked for me (nautilus 2.6.3).

Would someone adjust the FAQ?


Matthias Bläsing
Tempus fugit! Carpe diem!
ICQ: 84617206       AIM: linuxfun81    MSN: linuxfun hotmail com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]