> The orientation lock value (it needs to be one of the 4 available > orientations to store and recover between sessions, for example) > will be stored in gsettings, written to by settings app, reset by > settings app and $indicator, TBC.
I agree with everything except this bit. I think the GSetting API should be a boolean, orientation lock on/off. It will be up to shell to save the last locked orientation somewhere separately, and use that if session restored. Reason I propose this is: applications are not guaranteed to know the orientation of the shell/device. Main example is tablet side-stage apps: they will be told they're portrait (as they would be on the phone), but the device is actually landscape. IMO it really makes more sense for shell to just listen for an orientation lock on/off switch, and just do the right thing. I think otherwise there's a danger USS might choose the wrong orientation for shell to lock in. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to gsettings-ubuntu-touch- schemas in Ubuntu. https://bugs.launchpad.net/bugs/1288332 Title: Orientation lock not available (rotation/portrait lock) Status in Platform API: In Progress Status in Qt integration with the Mir display server: In Progress Status in QT Ubuntu: In Progress Status in “gsettings-ubuntu-touch-schemas” package in Ubuntu: Fix Released Status in “ubuntu-system-settings” package in Ubuntu: Fix Released Status in “ubuntu-ui-toolkit” package in Ubuntu: Opinion Status in “unity8” package in Ubuntu: Opinion Bug description: Ubuntu Trusty r188 1. Open System Settings. 2. Try to turn on Orientation Lock. What happens: There's no such setting. <https://wiki.ubuntu.com/SystemSettings#phone-quick-access>: "The quick access area is a group of list items at the top of the overview screen. It should always contain 'Orientation Lock'..." To manage notifications about this bug go to: https://bugs.launchpad.net/platform-api/+bug/1288332/+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