Patch to ubiquity's gtk_ui.py

--- gtk_ui.py.old       2008-04-01 13:02:20.917370401 +0000
+++ gtk_ui.py   2008-04-01 13:14:14.753433264 +0000
@@ -271,6 +271,11 @@
             self.gconf_previous[gconf_key] = gconftool.get(gconf_key)
             if self.gconf_previous[gconf_key] != 'false':
                 gconftool.set(gconf_key, 'bool', 'false')
+        gconf_key = '/apps/nautilus/preferences/media_autorun_never'
+        self.gconf_previous[gconf_key] = gconftool.get(gconf_key)
+        if self.gconf_previous[gconf_key] != 'true':
+                gconftool.set(gconf_key, 'bool', 'true')
+             
 
         self.thunar_previous = self.thunar_set_volmanrc(
             {'AutomountDrives': 'FALSE', 'AutomountMedia': 'FALSE'})
@@ -292,6 +297,12 @@
             elif self.gconf_previous[gconf_key] != 'false':
                 gconftool.set(gconf_key, 'bool',
                               self.gconf_previous[gconf_key])
+        gconf_key = '/apps/nautilus/preferences/media_autorun_never'
+        if self.gconf_previous[gconf_key] == '':
+                gconftool.unset(gconf_key)
+        elif self.gconf_previous[gconf_key] != 'true':
+             gconftool.set(gconf_key, 'bool',
+                    self.gconf_previous[gconf_key])
 
         if self.thunar_previous:
             self.thunar_set_volmanrc(self.thunar_previous)

-- 
When hardy's ubiquity is running from a live cd it sometimes hangs, its 
migration assistant gives an incomplete list of userid candidates, and nautilus 
pops up /home/ubuntu windows
https://bugs.launchpad.net/bugs/210620
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to