toxygen-project / toxygen

Toxygen is pythonic Tox client
GNU General Public License v3.0
280 stars 46 forks source link

FileNotFound error when drag-and-drop file on Linux Mint Mate #65

Closed Nokta-strigo closed 6 years ago

Nokta-strigo commented 6 years ago

When I drag-and-drop file from file -manager to chat in Toxygen, the latter crashes with

Traceback (most recent call last): File "toxygen/mainscreen_widgets.py", line 62, in dropEvent File "toxygen/mainscreen_widgets.py", line 73, in pasteEvent File "toxygen/profile.py", line 1119, in send_file File "toxygen/file_transfers.py", line 133, in init FileNotFoundError: [Errno 2] No such file or directory: '/home/user/filename.ext\r\n' Aborted

When I choose the same file from Toxygen window (by pressing on the clip image) it works fine.

Toxygen Version: 0.4.1 (https://github.com/toxygen-project/toxygen/releases/download/v0.4.1/toxygen_linux_64.tar.gz)

I believe the problem can be the unstripped '\r\n' simbols at the end of the filename, but I haven't checked it.

IngvarX commented 6 years ago

Fixed in ce84cc5