Andreas Enge <andr...@enge.fr> writes: > the attached file adds the e-book management program calibre. Eventually, > I will put it into ebook.scm. Comments are welcome, in particular concerning > the xdg issue. > > The program works for downloading and reading ebooks, but it has problems > with mounting my attached e-reader. The problem seems to be that the guix > calibre is not allowed to connect to my debian dbus: > Udisks mount call failed: > Traceback (most recent call last): [...] > DBusException: org.freedesktop.UDisks2.Error.NotAuthorized: Not authorized to > perform operation (polkit authority not available and caller is not uid 0)
It's not that you're not allowed to connect to Debian D-Bus, but rather that D-Bus (or UDisks2) thinks you are not authorized to mount a disk. My knowledge of this is weak, but I guess the way this works on modern systems is that <http://www.freedesktop.org/wiki/Software/polkit/> (Policy Kit) enables an authorization scheme where whoever is logged in at the physical console is also granted access to mount disks, use audio/video devices, etc. I'm not sure why it's not working here, but I guess it might be because we lack polkit in Guix. Mark