@Brian, unfortunately changes to unity-scopes-shell take considerably
longer to land than changes to our bindings, so I can't promise it'll be
available any sooner than 1, maybe 2 weeks.

My suggestion would be to implement a workaround in your JS code for the
time being that checks for quotes either side of a settings value, then
strips them out. At least this way, you can have your scope working
ASAP, plus the change will be backward compatible even once the fix
lands.

Something like this:

    function unquote(str)
    {
        if (str[0] === '"' && str[str.length - 1] === '"')
            return str.slice(1, str.length - 1);
        return str;
    }

then later:

    var setting =
unquote(scopes.self.settings["location"].get_string());

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

Title:
  String settings with special characters become quoted

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-js-scopes/+bug/1552082/+subscriptions

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

Reply via email to