Botspot / vdesktop

Run a second instance of Raspbian inside Raspbian.
GNU General Public License v3.0
125 stars 21 forks source link

issue when updating #22

Closed Itai-Nelken closed 3 years ago

Itai-Nelken commented 3 years ago

fails to move vdesktop.old to trash. terminal output:

pi@Twisterpi4-ultra-4gb:~/Downloads $ sudo ~/vdesktop/vdesktop ~/Downloads/2020-12-02-raspios-buster-armhf.img gui
Version 17 is available. Would you like to download it? [Y/n]
y
/home/pi/vdesktop/vdesktop: line 13: read: `-t': not a valid identifier
OK. Downloading Vdesktop.
Cloning into '/home/pi/vdesktop.new'...
remote: Enumerating objects: 183, done.
remote: Counting objects: 100% (183/183), done.
remote: Compressing objects: 100% (138/138), done.
remote: Total 381 (delta 92), reused 83 (delta 30), pack-reused 198
Receiving objects: 100% (381/381), 2.73 MiB | 685.00 KiB/s, done.
Resolving deltas: 100% (195/195), done.

New version has been downloaded. Old version is located at /home/pi/vdesktop.old
gio: file:///home/pi/vdesktop.old: Error trashing file /home/pi/vdesktop.old: No such file or directory
Copied to /home/pi/vdesktop successfully.
pi@Twisterpi4-ultra-4gb:~/Downloads $ 
Botspot commented 3 years ago

That looks to be okay. I suppose I could suppress the error. (make it hidden)

Itai-Nelken commented 3 years ago

why is it trying to move the old version to trash and failing than?

Botspot commented 3 years ago

why is it trying to move the old version to trash and failing than?

When you update, this happens:

So, if vdesktop.old doesn't exist, you will see that error.
Make sense?

Itai-Nelken commented 3 years ago

yes, I just thought that it tries to move vdesktop.old to trash after reanming the old version, I didn't think about the fact that vdesktop.old will be there in all updates after the first. thanks for the explanaition.