Comment 7 for bug 543042

Revision history for this message
Martin Olsson (mnemo) wrote :

I found some more clues concerning this bug.

@Milan, first I suppose the communication here happens "nautilus <--> GVFS <--> policykit". I can see that the "nautilus" package depends on the "gvfs" package which in turn depends on the "policykit-1-gnome" package. When I grep in the "policykit-1-gnome" package source I find one reference to the string "OLKIT_ERROR". Also, from grepping in the nautilus code, I believe that the silly message dialog originates from this place: nautilus-2.29.92.1/libnautilus-private/nautilus-file-operations.c:2306

The nautilus code says "show error for all error codes except G_IO_ERROR_FAILED_HANDLED", but that means it does show an error message for the error code "G_IO_ERROR_CANCELLED". I don't know which error code is actually being handed to nautilus here, I'm just speculating based on the GIO docs:
http://library.gnome.org/devel/gio/unstable/gio-GIOError.html#GIOErrorEnum

It would be interesting to put some debug statements into this source location or maybe some breakpoints. However, in that case I must be able to repro this bug which I can't right now. Because policykit has now cached my password so I'm not prompted for it anymore when I open Places::DiskDrive.

How can I make policykit forget this cached password so I get the password prompt again?