@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
Touch seeded packages, which is subscribed to unity-scopes-shell in
Ubuntu.
https://bugs.launchpad.net/bugs/1552082

Title:
  String settings with special characters become quoted

Status in unity-js-scopes:
  Invalid
Status in unity-scopes-shell package in Ubuntu:
  In Progress

Bug description:
  I'm unsure if this is a bug in the JS scopes or in scopes themselves,
  but a string setting that has special characters entered into it (like
  `=`) end up being surrounded by quotes when pulled in the code. For
  example I have a string setting that I entered `abc=abc`, the result
  in the code is `"abc=abc"`. I find this behavior to be very odd and
  unexpected.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to