← Back to team overview

ubuntu-phone team mailing list archive

Re: Detecting Touch apps and X-Ubuntu-Touch

 

On 09/28/2015 02:36 PM, Thomas Voß wrote:
> On Mon, Sep 28, 2015 at 8:09 PM, Michael Terry
> <michael.terry@xxxxxxxxxxxxx> wrote:
>> For the pocket desktop feature, we want to be able to distinguish between
>> native Touch apps and non-Touch apps, in order to be able to apply different
>> lifecycle policies to them.
>>
>> For example, LibreOffice does not automatically save its state when it loses
>> focus, as a good Touch app would.  So we'd like to warn the user when
>> exiting pocket desktop mode that they should go save their work.
>>
>> Now, whether an app was built for Touch is kind of hard to detect in theory.
>> Whether it talks the Mir protocol isn't sufficient (could be a GTK app with
>> the Mir backend).  Whether it is a click package isn't sufficient (some
>> Touch apps like System Settings are debs).  At least if it is an Xmir app
>> instance, we know (those are all non-Touch).
>>
>> Ideally, we'd have a metadata flag that indicates whether the app is
>> designed for Touch and thus opts-into Touch lifecycle handling (or opts-out,
>> depending on the default).
>>
> 
> One remark: We have to make sure that apps cannot easily use the flag
> (at least not without a manual reveiw). Otherwise, we would
> open the door for apps escaping our strict lifecycle.
> 
As an option, the review tools can be adjusted for this if necessary. Please
file a bug at https://bugs.launchpad.net/click-reviewers-tools/+filebug if the
review tools need to be updated (and how).


-- 
Jamie Strandboge                 http://www.ubuntu.com/

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References