raspberrypi-ui / piclone

Utility to back up Pi to an SD card reader
263 stars 62 forks source link

start piclone as root, cannot see drives #36

Closed MrEnergy64 closed 3 years ago

MrEnergy64 commented 3 years ago

Hello,

I compiled you piclone successfully on raspi ubuntu 20.04.2 tls. When I start the piclone as root I cannot see/choice an drive in the menu.

When I start it as normal user, I can see and choice the drives, after start I see the window with the delete drive messages and then I just see Checking source.... and in the terminal I see:

ubuntu@ubuntu:~/Downloads/piclone-master$ piclone WARNING: You are not superuser. Watch out for permissions. Error: Error opening /dev/mmcblk0: Permission denied

Linux ubuntu 5.4.0-1028-raspi #31-Ubuntu SMP PREEMPT Wed Jan 20 11:30:45 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

What do I wrong?

spl237 commented 3 years ago

piclone needs to access the session D-Bus to see drives, which it cannot do if started as sudo. You need to use the command line in the piclone.desktop file to start with the appropriate permissions.