https://bugs.kde.org/show_bug.cgi?id=450905

skierpage <skierp...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |skierp...@gmail.com

--- Comment #9 from skierpage <skierp...@gmail.com> ---
This happened to me today. I think the last time I transferred Android -> Linux
and it worked might have been May 8. My behavior is a little different. I share
a picture from Google Photos or Google Files and quickly get an Android
notification from KDE Connect version 1.30.1 "Failed sending file to
fedlaptop", while KDE Connect 24.02-2 on my laptop pops up a "Receiving file"
progress notification that never completes. But unlike @TraceyC, I don't see
any partial files.

I Force stop'd KDE Connect on Android and restarted, and now sending files
results in a fast notification "Receiving file (Failed) Received incomplete
file: Error opening file:~/Documents/temp/<IMAGE FILENAME>: No such file or
directory." I ran strace on the kconnectd PID and saw lines like:
    [pid  2402] statx(AT_FDCWD,
"~/Documents/temp/2024-05-26_SFJAZZ_Holland_Potter_Hussain.png",
             AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW|AT_NO_AUTOMOUNT,
STATX_ALL, 0x7fffd73ee8d0) = -1
             ENOENT (No such file or directory)
Hold on, syscalls don't know about '~' for home directory!

WORKAROUND: After I went into System Settings > KDE Connect > Share and receive
> Configure and changed the "Save files in" path to a full path with no '~' 
(i.e. /home/MYUSERNAME/SOME/PATH), sending files worked! 👈 People, try this.

It seems the fix in kdeconnect is to expand ~ before handing the path to
lower-level software. (Or, worse, disallow ~ in the file chooser dialog.) I've
used KDE Connect so long I can't remember what its default Save path was, but
until it failed I hadn't changed it for months.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to