No CLI file manipulation to gvfs mount of phone via bluetooth. Why no permission?
Can anyone enlighten me as to why simple cli file manipulation command 'cp' won't work on .gvfs mount bluetooth phone? A simple clarification would be greatly appreciated. I found that gvfs-copy worked, after I asked bluetooth to browse the device, (phone). Thank you. Following, some cli stuff I tried.
user@cpu:~$ alias f
alias f='sed "s/$ACCOUNT_NAME/\$USER/g"
user@cpu:~$ cat ~/.bashrc | grep ACCOUNT_NAME
ACCOUNT_NAME=`cat /etc/passwd | grep 1000 | cut -d: -f1` # SET $ACCOUNT_NAME
user@cpu:~$ ls -al ~/.gvfs/LG440G/Audio/ | head -n4 | f
total 20439
drwx------ 1 $USER $USER 0 1969-12-31 18:00 ./
drwx------ 1 $USER $USER 0 1969-12-31 18:00 ../
-rwx------ 1 $USER $USER 4184488 1969-12-31 18:00 04 Angel.mp3*
user@cpu:~$ cp -vdp Happy_Days_Ringtone.mp3 .gvfs/LG440G/Audio/
`Happy_Days_Ringtone.mp3' -> `.gvfs/LG440G/Audio/Happy_Days_Ringtone.mp3'
cp: cannot create regular file `.gvfs/LG440G/Audio/Happy_Days_Ringtone.mp3': Operation not supported
user@cpu:~$ sudo su -c 'cp -vdp Happy_Days_Ringtone.mp3 .gvfs/LG440G/Audio/'
cp: accessing `.gvfs/LG440G/Audio/': Permission denied
user@cpu:~$ ps aux | grep -v grep | grep gvfs | f
$USER 7982 0.0 0.0 15072 2900 ? S 12:42 0:00 /usr/lib/gvfs/gvfsd-obexftp --spawner :1.6 /org/gtk/gvfs/exec_spaw/10
$USER 8931 0.0 0.0 15032 1928 ? S Jun24 0:00 /usr/lib/gvfs/gvfsd-computer --spawner :1.6 /org/gtk/gvfs/exec_spaw/8
$USER 10409 0.0 0.0 6796 1016 ? S Jun22 0:12 /usr/lib/gvfs/gvfsd
$USER 10414 0.0 0.0 30428 1844 ? Ssl Jun22 0:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/$USER/.gvfs
$USER 10422 0.0 0.0 33524 2800 ? S Jun22 0:00 /usr/lib/gvfs/gvfs-gdu-volume-monitor
$USER 10435 0.0 0.0 16976 676 ? Sl Jun22 0:09 /usr/lib/gvfs/gvfs-afc-volume-monitor
$USER 10438 0.0 0.0 7276 900 ? S Jun22 0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
$USER 10441 0.0 0.0 6836 1796 ? S Jun22 0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.6 /org/gtk/gvfs/exec_spaw/0
$USER 10536 0.0 0.0 6400 12 ? S Jun22 0:00 /usr/lib/gvfs/gvfsd-burn --spawner :1.6 /org/gtk/gvfs/exec_spaw/1
$USER 14467 0.0 0.0 6560 1036 ? S Jun23 0:00 /usr/lib/gvfs/gvfsd-metadata
$USER 31020 0.0 0.0 15676 12 ? S Jun24 0:00 /usr/lib/gvfs/gvfsd-network --spawner :1.6 /org/gtk/gvfs/exec_spaw/4
$USER 31025 0.0 0.0 6568 484 ? S Jun24 0:00 /usr/lib/gvfs/gvfsd-dnssd --spawner :1.6 /org/gtk/gvfs/exec_spaw/6
user@cpu:~$ gvfs-copy --progress --preserve temptest.wav .gvfs/LG440G/Audio/
progress 0/117234 (0 bytes/s)
progress 15944/117234 (15.6 KB/s)
progress 23916/117234 (23.4 KB/s)
progress 31888/117234 (31.1 KB/s)
progress 39860/117234 (38.9 KB/s)
progress 47832/117234 (46.7 KB/s)
progress 55804/117234 (54.5 KB/s)
progress 63776/117234 (62.3 KB/s)
progress 71748/117234 (70.1 KB/s)
progress 79720/117234 (77.9 KB/s)
progress 87692/117234 (85.6 KB/s)
progress 95664/117234 (93.4 KB/s)
progress 103636/117234 (101.2 KB/s)
progress 111608/117234 (109.0 KB/s)
progress 117234/117234 (114.5 KB/s)
progress 117234/117234 (114.5 KB/s)
progress 117234/117234 (114.5 KB/s)
(gvfs-copy:18480): GLib-GIO-CRITICAL **: g_cancellable_release_fd: assertion `G_IS_CANCELLABLE (cancellable)' failed
user@cpu:~$
This last attempt via gvfs-copy, though outputing "'G_IS_CANCELLABLE (cancellable)' failed", worked. What's up with normal 'cp' command?
|