Re: [SailfishDevel] After April SDK Update Existing App fails on RPM deploy to Jolla Device: Possible rights problem
I got the exactly same surprise. Rights of file was readable only by root. My projects is placed on a foldr that is synced between many devices, os, and fs, (btsync on windows/fat32, linux ext4, ext3 on rasp, n9) ... and look like file attrb are badly set :) Regards À Wed Apr 16 2014 14:55:37 GMT+0200 (CEST), christopher.l...@thurweb.ch a écrit : Hi Andrey Thanks for the fast answer Given that we are talking about cross-platform development - developing on one and deploying to another I am not sure that is always possible. What if my development host was Windows? And as a developer I want to worry about writing code, not all the arcane rights that all the files need to work when deployed In fact my main development host is OSX which has unix like permissions, the same as Sailfish. Having a look at the files on my host, it looks like the files are now deployed with the original (strange mix of) rights from my host. However in previous SDK releases this was not an issue, As far as I can see the SDK took care of permissions. In the meantime I will chmod the files on the host and see if that helps... Cheers Chris Zitat von Andrey Kozhevnikov coderusin...@gmail.com: IMHO you should manage file permissions yourself before deploying? 16.04.2014 18:39, christopher.l...@thurweb.ch пишет: Hi All I have just installed the April SDK update, and have opened an existing app, and am trying to deploy to my Jolla. The app worked with the previous SDK release, and is already installed on the phone. If I deploy as Deploy by copying Binaries then thinks work as expected, and the app successfully deploys and starts on the phone. If I deploy as Deploy as RPM Package, then I get the error below in QtCreator, and a white screen of death on the phone. [W] unknown:72 - file:///usr/share/landed26_QT5/qml/landed26_QT5.qml:72:5: Type MainPage unavailable MainPage { ^ [W] unknown:9 - file:///usr/share/landed26_QT5/qml/gui/MainPage.qml:9:1: Script file:///usr/share/landed26_QT5/qml/javascript/landed.js unavailable import ../javascript/landed.js as LJS ^ [W] unknown:-1 - file:///usr/share/landed26_QT5/qml/javascript/landed.js: File not found I also get the white screen when trying to open the app. Via SSH on the jolla device I can find the file is present: [nemo@Jolla javascript]$ pwd /usr/share/landed26_QT5/qml/javascript [nemo@Jolla javascript]$ ls -ahl total 48K drwxr-xr-x 1 root root 152 2014-04-16 14:31 . drwxr-xr-x 1 root root 110 2014-04-16 14:31 .. -rw-r--r-- 1 root root 4.2K 2014-04-16 14:31 jsonpath.js -rw--- 1 root root 349 2014-04-16 14:31 landed.js -rw--- 1 root root 1.2K 2014-04-16 14:31 message.js -rwxr-xr-x 1 root root 9.4K 2014-04-16 14:31 readDataModel.js -rwxr-xr-x 1 root root 8.8K 2014-02-03 08:32 settingsDB.js -rw-r--r-- 1 root root 5.2K 2014-04-16 14:31 writeDataModel.js However the access permissions look very strange. I suspect that all the js files should have rights like -rwxr-xr-x Chris ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing lis -- Benoît HERVIER - http://khertan.net ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] working on apps?
BitPurse : Bitcoin client ownNotes : notes taking apps with ownCloud apps. Regards -- Benoît HERVIER - http://khertan.netLe 14/12/13 11:41 AL13N a écrit : if there are people who are working on apps, and want to let it know, so that no other devs will waste time making the same apps, you can add these here: http://elinux.org/Jolla in the appriopriate section. Thanks! ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Does Sailfish support PyQt5?
For the moment apps linked to python aren't accepted yet in the harbour store. Regards -- Benoît HERVIER - http://khertan.netLe 01/12/13 22:18 Gabriel Boehme a écrit : No it's not really supporting PyQt5, at the moment - in Jolla Store - are only Qt/QML apps with C++ allowed, but it is planned to support PyOtherSide from Thomas Perl. This allows to use a Python backend, with much better performance. As far as I know it's not very hard to understand and use it. Learn more at: http://thp.io/2011/pyotherside/ Gabriel. Am Sonntag, den 01.12.2013, 22:27 +0800 schrieb Ye Zetao: Hello,I am a developer of python and I know that Sailfish support Qt with C++, but I am not familiar with C++,So I want to know that if Sailfish support PyQt5 ? Thanks :) ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Ignoring auto signed SSL certificates
Hi, I m just curious, which type of apps connected to ownCloud are you cooking ? I didn't have such problem with ownNotes and self signed certificate, but the https requests are made with python, so that's will not help you. Regards -- Benoît HERVIER - http://khertan.netLe 09/11/13 18:56 Tigre-Bleu a écrit : Hi Gianni I agree that accepting the auto-signed certificate without prompt would be a potential security breach. However, I think there should be a dialog automatically opened by the OS asking the user what to do (or at least delegate the dialog implementation to the app itself). I am developping a sailfish app that is connected to an owncloud instance. Most of the time, the average geek (including me :) ) is using auto-signed ssl certificate. I don't want to force the user to use http where https could be used. I don't know C++ so I'm not really ready to play with QNetwork. Maybe I'll find something on the internet... Regards, Antoine -- Tigre-Bleu mail/jabber: antoine.vac...@tigre-bleu.net De: Gianni Vialetto gia...@rootcube.net À: Sailfish OS Developers devel@lists.sailfishos.org Envoyé: Samedi 9 Novembre 2013 12:25:54 Objet: Re: [SailfishDevel] Ignoring auto signed SSL certificates On Fri, Nov 8, 2013 at 7:26 PM, Tigre-Bleu de...@tigre-bleu.netwrote: Hello, The open() function of XMLHttpRequest seems to not work with auto signed ssl certificates. I have checked with valid certificates and there is no problem. Is this the expected behavior? If so how am I supposed to fetch some data from an auto signed https page using QML? Thanks, Antoine Hi Antoine, I cannot confirm it without diving into the implementation, but i believe the behavior of XHR you are seeing is reasonable from a security point of view - the alternative could be to prompt the user for confirmation. As an alternative you could construct the connection with QNetwork classes from the C++ side (the QSslConfiguration class should have a method to add a new CA to the list of those accepted). Regards,-- Gianni Vialetto ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla Harbour and Jolla Store
An analogy with boat about apps including his own libs : https://mobile.twitter.com/usmanm/status/388407160159211520/photo/1?screen_name=usmanm#!/usmanm/status/388407160159211520/photo/1?screen_name=usmanm :p -- Benoît HERVIER - http://khertan.netLe 06/11/13 18:33 Marcin M. a écrit : And somehow Debian and Ubuntu and ... do well it with real depends... --Marcin 2013/11/6 Marcin M. marmistrz...@gmail.com If everything handled correctly (assuming no 3rd party lib updates) what bad can happen? -- Marcin 2013/11/6 Martin Grimme martin.gri...@gmail.com Hi, 2013/11/6, 郭云鹤 guoyunhebr...@gmail.com: i think every app should be independent. apps' dependence caused many problems. I think the same. While having deps and libraries and everything is cool from a Linuxer's point of view, it will give a bad user experience and just cry for breaking things when updating the OS or other apps. You can either try to get the library into Nemo, or include it in your package or link to it statically. Those few kbytes wasted by this approach should be no real problem, but worth it, if it improves the user's experience and happiness with Sailfish devices. I remember people crying they could not update their N900 because of some library dependencies. Don't let this happen again. 1337 Linux h4x0rz in need of obscure libs and stuff will always find a workaround to fulfill their needs, e.g. with 3rd party repositories. :) Keep in mind that Sailfish wants to be attractive to regular users and user experience should be highly valued. My 2 cents, Martin 郭云鹤(Guo Yunhe) http://guoyunhe.me/ 在 2013-11-7 上午12:13,Marcin M. marmistrz...@gmail.com写道: It's not a pity when it comes to libraries. It is when you create a modular app ;) - divided into packages. But if there was an in-app-purchase system, it wouldn't be so bad :) -- Marcin 2013/11/6 Mohammed Hassan mohammed.has...@jollamobile.com I don't see it as a pity. I see it as an opportunity for everyone to push their libraries and stuff to mer/nemo/sailfish. An advantage of SailfishOS is that everyone can contribute and have their own applications, libraries and tools there. Just my 0.02 Cheers, On Wed, Nov 06, 2013 at 05:06:58PM +0100, Marcin M. wrote: Hi, Thanks! Well, it's a pity ;( Regards, -- Marcin 2013/11/6 Jonni Rainisto [1]jonni.raini...@jolla.com Hi, AFAIK. Currently you can only depend on mer/nemomobile packages, you cannot depend on store packages. re, Jonni __ From: [2]devel-boun...@lists.sailfishos.org [[3]devel-boun...@lists.sailfishos.org] on behalf of Marcin M. [[4]marmistrz...@gmail.com] Sent: Wednesday, November 06, 2013 5:34 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store And what about in-app-store depends? (Free app, paid databases, databases depend on the free app) -- Marcin 2013/11/6 Andrey Kozhevnikov [5]coderusin...@gmail.com Good point, thanks! On 06.11.2013 18:30, Jonni Rainisto wrote: And if some good library is missing, and you are willing to maintain the library, feel free trying to get it added to Mer/Nemomobile side (after that you can depend against it). re, Jonni From: [6]devel-boun...@lists.sailfishos.org [[7]devel-boun...@lists.sailfishos.org] on behalf of Jonni Rainisto [[8]jonni.raini...@jolla.com] Sent: Wednesday, November 06, 2013 2:27 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store HI, AFAIK, uploading libraries to store is forbidden, you can only depend on common mer/nemomobile libraries in .spec/rpm Requires field. re, Jonni From: [9]devel-boun...@lists.sailfishos.org [[10]devel-boun...@lists.sailfishos.org] on behalf of Andrey Kozhevnikov [[11]coderusin...@gmail.com] Sent: Wednesday, November 06, 2013 1:40 PM To: [12]devel@lists.sailfishos.org Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store Please more information about Harbour: - it can accept only single files, means i cant upload some libraries, required as depends for my appliction? - does it acts as repository? On 06.11.2013 17:06, Karl Granström wrote: Ahoy all, Today we're launching Jolla Harbour [13]harbour.jolla.com, the portal for submitting applications to the Jolla Store. You can submit and manage your applications. Consumers will be able to install them directly from their Jolla phones. Here are some details about Jolla Harbour: Joining and logging into Jolla Harbour: Joining is free! You can create a Jolla account from the Jolla Harbour landing page ([14]harbour.jolla.com) or if you have pre-ordered your Jolla phone, you have everything you need to get started. To manage your account
Re: [SailfishDevel] Python Qt5 (PyOtherSide / PyQt)
i m a bit busy to explain, but you can also use the python version which is installed on sailfish. Do not forget to install python-devel in toolkit via the nice sailfish icon. http://khertan.net/ownNotes http://github.com/khertan/ownNotes Regards -- Benoît HERVIER - http://khertan.netLe 30/09/13 13:26 FIlip Kłębczyk a écrit : W dniu 30.09.2013 13:08, Matt Austin pisze: Hi, It looks like we might now have a couple of possible options with Python apps on Sailfish with Qt5: 1) PyOtherSide: http://thp.io/2011/pyotherside/ 2) PyQt 5.0.1: http://www.riverbankcomputing.com/news/pyqt-501 I've been playing around today, and unfortunately was unable to get either installed nicely on the Sailfish VM. PyOtherSide requires Python 3 (which as far as I can tell is not available in the Sailfish VM), and I thought I managed to get PyQt to make/install, but then I just got symbol errors when I tried to import the modules. Obviously I'm not very good at compilation/linking/dependencies/flags/headers etc. (I am a python user after all :P ). So I was wondering if there are any plans to add either PyOtherSide or PyQt5 to the sailfish repos? Well I think I've seen Python 3 already in Mer, so most probably it will be in Sailfish (or is already). I also think that it is much more probable to see PyOtherSide on Sailfish. On Qt Developer Days happening next week in Berlin there is a talk about PyOtherSide by thp so maybe there something more will be known (or not). I think PyQt from Riverbank is rather not the best solution on Sailfish - don't know if it is worth to dedicate time for that if PyOtherSide will be available. I've recently met in Prague some guy who developed his apps with PySide on Meego and now is trying to rewrite them to PyOtherside. Regards, Filip ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Sailfish UI VKBD
Space is valid for uri, that's just magically encoded by browser to %20 ... And when you mix address bar and search bar adding a space at the beginning prevent doing a DNS query on a search which contain two words separated by a dot. Example with search: QtCore.QApplication ... if you didn't put a space before browser will answer that s domain didn't exist. Regards, -- Benoît HERVIER - http://khertan.netLe 08/09/13 02:39 Mikael Hermansson a écrit : I think that the @ character should be visible directly on VKBD when inputtype is email. If I remember correct on N9/N900 is space button used for @ because space is not used anyway when enter email adresess so... Start made me think of URL:s maybe space could be used to something else when enter URl:s too. Such as toggle http:// https:// atleast when URL line is empty? Just my cents ;) ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Fwd: Re: Include Python.h
Hi Christopher, Indeed i think the vm was the toolchain, and not an host of the toolchain :p That's solve my problems and I'll be able to play now with PyOtherSide on sailfish. Thanks a lot ! -- Benoît HERVIER - http://khertan.netLe 06/08/13 11:14 christopher.l...@thurweb.ch a écrit : Hi Benoit B.t.w, zypper in to the MERSDK and adding packages to the toolchain via the SDK Control Center are NOT the same thing*. I was also a bit confused on this, but as I see it, using zypper in the MERSDK makes stuff available to the underlaying operating system, but not necessarily to the toolchain. To me it makes sense to isolate the 2, the OS may require different versions of the same package then those in the toolchain (which are intended to build stuff for a third party - in this case the Emulator) Perhaps David can explain this better. Chris * having just added python-devel via the SDK Control Center, I also did a zypper se python-devel, which showed that package is not installed (for the OS), yet it is in the toolchain. - Weitergeleitete Nachricht von christopher.l...@thurweb.ch - Datum: Tue, 06 Aug 2013 11:03:35 +0200 Von: christopher.l...@thurweb.ch Betreff: Re: [SailfishDevel] Include Python.h An: Benoît HERVIER kher...@khertan.net Cc: devel@lists.sailfishos.org Salut Benoit Have you tried installing python-devel via the SDK Control Center in QtCreator. (The Sailfish Icon on the left side of QtCreator) I have just done so, an now have a python.h file in the toolchain (before I had none). Chris Zitat von Benoît HERVIER kher...@khertan.net: Morning I'm currently facing a problem that i didn't understand : ./qpython.h:4:20: fatal error: Python.h: No such file or directory qpython.h #ifndef _QPYTHON_H #define _QPYTHON_H #include Python.h I ve installed via zypper python-devel in mersdk vm. I've even added hardcoded path in .pro: INCLUDEPATH += /usr/include/python2.7 LIBS += -lpython2.7 And python2.7 headers path are in the gcc cmd: Exécution_de(%build): /bin/sh -e /var/tmp/rpm-tmp.b27OWP g++ -c -m32 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -m32 -march=core2 -mssse3 -mtune=atom -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wall -W -D_REENTRANT -fPIE -DDEPLOYMENT_PATH=\/usr/share/ownNotesForSailfish/\ -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-32 -I. -I/usr/include/python2.7 -Isailfishapplication -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -Imoc -o obj/main.o main.cpp Python.h is available in /usr/include/python2.7 on mersdk vm. Such include is working in QtProject QtCreator on desktop ... so i suppose that something i miss with the compilation on target ... Any advice ? Thx -- Benoît HERVIER - http://khertan.net/ ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list - Ende der weitergeleiteten Nachricht - ___ SailfishOS.org Devel mailing list