[Ubuntu-phone] running default unity-scope on phone fails

2016-01-10 Thread Ingo Randolf
Hi. When i try to start a default (unchanged) "Unity-Scope (Current)" project on a BQ Aquaris E4.5 i get this output: ERROR: untitled.username_untitled: unity::scopes::ConfigException: Cannot instantiate run time for untitled.username_untitled, config file: /home/phablet/.local/share/unity-scopes

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Michi Henning
> it's an API that is being developed. :) Right. And I’m not trying to blame the API here, seeing that it really tries to solve a different problem. I’m not asking for the API to do what I need because I suspect that my question should be answered by a different API entirely. (For one, an API t

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Michi Henning
> So, from a confined process, can I find out whether Hybris is installed? OK, so I can successfully stat() /usr/lib//libhybris from a confined process. Looks like that’s the ticket I need to get me off the hook, thanks! Michi. -- Mailing list: https://launchpad.net/~ubuntu-phone Post to :

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Lorn Potter
On 11/01/16 14:39, Michi Henning wrote: But this requires an input to then find out what the source was (mouse, touch screen, etc.). It does not need an event first. QInputInfoManager::deviceMap() will give a list of devices. You can filter these by setting a filter first. Ah, yes, right

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Michi Henning
>> >> But this requires an input to then find out what the source was (mouse, >> touch screen, etc.). > > It does not need an event first. QInputInfoManager::deviceMap() will give a > list of devices. You can filter these by setting a filter first. Ah, yes, right you are, thanks! Hmmm, but wha

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Michi Henning
> I wouldn't make the assumption that confined processes are necessarily > running in the phone as i believe the convergence plan is to have confined > apps on the desktop. > Right. > Aside from that, i would just try to do whatever it is you're trying to do > and then catch the failure as grac

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Lorn Potter
On 11/01/16 13:58, Michi Henning wrote: Right... forgot that it's a gerrit MR, not Launchpad: https://codereview.qt-project.org/#/c/101049/ Thanks for that! I just had a look at https://codereview.qt-project.org/#/c/101049/15/src/systeminfo/qinputinfo.h But this requires an input to then

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Robert Park
Ah, i thought you were working on a system service, didn't realize it would be confined. I wouldn't make the assumption that confined processes are necessarily running in the phone as i believe the convergence plan is to have confined apps on the desktop. Aside from that, i would just try to do w

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Michi Henning
> On 11 Jan 2016, at 14:12 , Robert Park wrote: > > Pardon my ignorance, buy can you not just check which codecs are installed/in > use and then make the right decisions based on that? It is a really bad > practice to write code that says "desktops be like this while phones be like > that" be

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Robert Park
Pardon my ignorance, buy can you not just check which codecs are installed/in use and then make the right decisions based on that? It is a really bad practice to write code that says "desktops be like this while phones be like that" because you never know when one day a new device might come along

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Michi Henning
> > Right... forgot that it's a gerrit MR, not Launchpad: > > https://codereview.qt-project.org/#/c/101049/ > Thanks for that! I just had a look at https://codereview.qt-project.org/#/c/101049/15/src/systeminfo/qinputinfo.h

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Michael Zanetti
Hi, On 11.01.2016 00:15, Michi Henning wrote: >> That said, there might be some rare cases where you need info on the >> currently connected input devices. We're working on an API for that [1] >> which I think Timo is already looking to add to the images, but it's not >> landed yet. > > Thanks Mi

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Michi Henning
> That said, there might be some rare cases where you need info on the > currently connected input devices. We're working on an API for that [1] > which I think Timo is already looking to add to the images, but it's not > landed yet. Thanks Michael! Is there any doc or header files I can look at?

Re: [Ubuntu-phone] Packaging Python app as click package

2016-01-10 Thread Dinko Osmankovic
Hi, Some time ago i have made a template for ubuntu apps with python and pyotherside. I don't know if it still works, but you can try. https://github.com/dinkoosmankovic/ubuntu-sdk-app-python-template Dinko On Sun, 10 Jan 2016, 20:50 Ferdinand Holzner wrote: > There is pyotherside. It's a lib

Re: [Ubuntu-phone] Packaging Python app as click package

2016-01-10 Thread Ferdinand Holzner
There is pyotherside. It's a library which enables QML to use python stuff. But i never really figured out how this works. http://pyotherside.readthedocs.org/en/latest/ Am 10.01.2016 um 20:40 schrieb Neil McPhail: On Sat, January 9, 2016 2:29 pm, Sam Bull wrote: I'm trying to package a Pytho

Re: [Ubuntu-phone] Packaging Python app as click package

2016-01-10 Thread Neil McPhail
On Sat, January 9, 2016 2:29 pm, Sam Bull wrote: > I'm trying to package a Python app as a click package, what do I need > to make this work? > > Is it just a case of including the interpreter and libraries as part of > the package, and setting my .desktop file to 'Exec=./python myapp.py' > (assumi

Re: [Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Michael Zanetti
Hi Michi On 10.01.2016 13:11, Michi Henning wrote: > I’d like to find out (at run time, from C++), whether I’m running on a > phone/tablet as opposed to a desktop. > > Is there any way to do that? > > Checking for Arm isn’t good enough, because a Chromebook runs on Arm, but > isn’t a phone or

[Ubuntu-phone] Find out if running on a phone

2016-01-10 Thread Michi Henning
I’d like to find out (at run time, from C++), whether I’m running on a phone/tablet as opposed to a desktop. Is there any way to do that? Checking for Arm isn’t good enough, because a Chromebook runs on Arm, but isn’t a phone or tablet. Or, to put it differently, I’d like to find out whether I