Commit 62d76672 authored by Michael Terry's avatar Michael Terry

don't ask for root when restoring from U1

parent 1c114058
......@@ -2,6 +2,7 @@ Déjà Dup 23.4 (GNOME 3.5.4)
---------------------------
Polish:
• Always makes a fresh backup every three months now, regardless of how often automatic backups happen
• Don't prompt for root password when restoring from Ubuntu One, as it won't work anyway (U1 needs to talk to your session bus, which root can't do)
• Use pkexec instead of gksu
Translations:
• Updated Arabic, Basque, Bengali, Bosnian, Brazilian Portuguese, Bulgarian, Chinese (Simplified), Danish, Esperanto, Finnish, French, Galician, German, Hebrew, Indonesian, Khmer, Lithuanian, Norwegian Bokmal, Russian, Sinhalese, Slovenian, and Turkish translations
......
......@@ -153,6 +153,10 @@ public class BackendU1 : Backend
public override string get_location(ref bool as_root)
{
// The UI backend for duplicity needs to talk to our session dbus, but it
// can't as root.
as_root = false;
var settings = get_settings(U1_ROOT);
var folder = get_folder_key(settings, U1_FOLDER_KEY);
return "u1+http://%s".printf(folder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment