ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #17619
Re: Find out if running on a phone
On 11.01.2016 12:41, Jani Monoses wrote:
> > Just try to exec getprop. It is only available on systems that are
> > running an Android container.
>
> That's not working when confined, is it?
>
> What about passing an argument to the app only when called on the phone,
> via the desktop file in the click and checking for that argument? This
> is not what I use right now though in TextSecure (just check for
> /home/phablet, knowing I can add some more dirs to that check to
> increase the probability the app runs on the phone).
You should not do that... Why do you even want to know?
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups
References
-
Find out if running on a phone
From: Michi Henning, 2016-01-10
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-10
-
Re: Find out if running on a phone
From: Michi Henning, 2016-01-10
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-10
-
Re: Find out if running on a phone
From: Michi Henning, 2016-01-11
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-11
-
Re: Find out if running on a phone
From: Michi Henning, 2016-01-11
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-11
-
Re: Find out if running on a phone
From: Michi Henning, 2016-01-11
-
Re: Find out if running on a phone
From: Thomas Voß, 2016-01-11
-
Re: Find out if running on a phone
From: Michael Zanetti, 2016-01-11
-
Re: Find out if running on a phone
From: Jani Monoses, 2016-01-11