sudo nano /usr/bin/unity

it not work:

 if current_profile_gconfvalue.get_string() == 'unity':
        print "WARNING: Unity currently default profile, so switching to 
metacity while resetting the values"
        subprocess.Popen(["metacity", "--replace"]) #TODO: check if compiz is 
indeed running
        # wait for compiz to stop
        time.sleep(2)
        current_profile_gconfvalue.set_string('fooo')
        current_profile_schema.set_default_value(current_profile_gconfvalue)
        client.set_schema("/apps/compizconfig-1/current_profile", 
current_profile_schema)
        # the python binding doesn't recursive-unset right
        subprocess.Popen(["gconftool-2", "--recursive-unset", 
"/apps/compiz-1"]).communicate()

it work! ( i drop get_string()):

    if current_profile_gconfvalue == 'unity':
        print "WARNING: Unity currently default profile, so switching to 
metacity while resetting the values"
        subprocess.Popen(["metacity", "--replace"]) #TODO: check if compiz is 
indeed running
        # wait for compiz to stop
        time.sleep(2)
        current_profile_gconfvalue.set_string('fooo')
        current_profile_schema.set_default_value(current_profile_gconfvalue)
        client.set_schema("/apps/compizconfig-1/current_profile", 
current_profile_schema)
        # the python binding doesn't recursive-unset right
        subprocess.Popen(["gconftool-2", "--recursive-unset", 
"/apps/compiz-1"]).communicate()

now unity --reset successful)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/737320

Title:
  unity crashed with AttributeError in reset_unity_compiz_profile():
  'str' object has no attribute 'get_string'

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to