Re: [SailfishDevel] How to use self-signed certificates transparently in a https POST/GET request with a QT Quick application?

2015-08-17 Thread Jonni Rainisto
Hi, Really bad for security, but you can for example in main() before creating any connections add these 3 lines of code, which will make application to skip all verifications, so any self signed and invalid certs are also accepted. clip QSslConfiguration config =

Re: [SailfishDevel] qml dbus send SMS

2015-03-17 Thread Jonni Rainisto
Just a reminder to people that harbour QA will most likely reject applications that send sms messages through dbus without opening official sms application. As recomended way is to open sms application with sms: tag (mailto: for email) where user can press send button himself. Like

Re: [SailfishDevel] QtMultimedia support

2015-02-25 Thread Jonni Rainisto
Also have you read known issues page, ie. have you enabled audio driver in your VM image? The sound is not enabled in the Emulator. Fix: Shutdown the emulator; Open virtualbox manager; Pick SailfishOS Emulator, Pick Settings, pick Audio, Enable audio (default driver). Accept. Start Emulator.

Re: [SailfishDevel] QtTouch for Sailfish?

2014-11-21 Thread Jonni Rainisto
Here's couple of example projects that I did a while ago (just tested that they still work). Example of raw QTouchEvents events in QML: https://gitorious.org/sailfishtouchexample/sailfishtouchexample/ Example of MultiPointTouchArea:

Re: [SailfishDevel] QtTouch for Sailfish?

2014-11-21 Thread Jonni Rainisto
...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of wsvries [wsvr...@xs4all.nl] Sent: Friday, November 21, 2014 6:22 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] QtTouch for Sailfish? Thanks, Jonni Rainisto schreef op 2014-11-21 10:17: Here's couple of example projects that I

Re: [SailfishDevel] Building command line Linux tools for jolla

2014-11-13 Thread Jonni Rainisto
https://build.merproject.org/project/subprojects/sailfishos:chum Has subprojects for each sailfish version. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Florian Kellmer [flor...@kellmer.net] Sent: Wednesday,

Re: [SailfishDevel] QSystemInfo: No such file or directory

2014-11-12 Thread Jonni Rainisto
QtMobility is for Qt4 only, so its not avail for Qt5/SailfishOS. Some of old mobility api's have been ported to Qt5 as Add-on modules: https://sailfishos.org/wiki/Porting/Harmattan re, Jonni From: devel-boun...@lists.sailfishos.org

Re: [SailfishDevel] Sample app in sailfish.

2014-10-16 Thread Jonni Rainisto
https://sailfishos.org/wiki/SDK_Alpha_Known_Issues#Emulator timeouts are usually DNS resolution releated. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Binu Andrews [binuandr...@gmail.com] Sent: Thursday,

Re: [SailfishDevel] Elevating process privileges?

2014-08-07 Thread Jonni Rainisto
hi, When you enable developer mode you have 'devel-su' command available. Harbour store doesn't allow apps that run as root. But openrepo's does (you can set suid bit in rpm and use standard c++ calls to to gaindrop privileges. Br, Jonni From:

Re: [SailfishDevel] SDK Installation

2014-07-21 Thread Jonni Rainisto
1st error in that picture is sudo bash, ie that root install is not supported, you are expected to install as normal user. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Paul Duncan [rvsji...@yahoo.com] Sent:

Re: [SailfishDevel] Setting/escalating app privileges ?

2014-05-31 Thread Jonni Rainisto
Yes, iwlist currently requires root, and Harbour rules doesnt allow root-bit to be set currently. But if your ok with application just beeing in OpenRepos, then you can give your application or helper binary a root suid-bit in rpm .spec file like this: %attr(4755,root,root)

Re: [SailfishDevel] QML creates a Segfault

2014-05-13 Thread Jonni Rainisto
http://qt-project.org/doc/qt-5/qml-qtquick-workerscript.html#restrictions Maybe you just didn't notice the restrictions part (ie script cannot access properties, methods or other attributes of the qml item etc). Hard to say without seeing your workerscript implementation. re, Jonni

Re: [SailfishDevel] Car Connectivity and SailfishOs

2014-04-25 Thread Jonni Rainisto
afaik (I might be wrong) there are no plans other than what comes with Bluez-stack, but Bluez-stack and our mer/nemo middleware is opensource, so feel free to contribute if you have working solution in mind... Or you might want to test if your android app would work in alien dalvik.

Re: [SailfishDevel] No QSerialPort

2014-03-25 Thread Jonni Rainisto
Hi, I hope that you are aware that USB OTG is not supported, so you cannot attach USB serial devices to Jolla? Or are you building yourself a custom TOH with USB host support and plan to use i2c serial ports? In that case you can just compile QtSerialPort code yourself (I've tested that it

Re: [SailfishDevel] Folder permissions

2014-03-13 Thread Jonni Rainisto
Did you remember to add %ghost in .spec files for rpm to claim ownership for files that you created? Afaik with that remove will also remove the files when package is uninstalled. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on

Re: [SailfishDevel] How to monitor inputs from a earphone remote control

2014-02-28 Thread Jonni Rainisto
) [a...@mecadu.org] Sent: Friday, February 28, 2014 10:15 AM To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] How to monitor inputs from a earphone remote control -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 27/02/2014 17:39, Jonni Rainisto a écrit : Currently you cannot

Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-27 Thread Jonni Rainisto
Yes, if you read the documentation pragma library cannot access qml properties directly. So its a feature. http://qt-project.org/doc/qt-5.0/qtqml/qtqml-javascript-resources.html#shared-javascript-resources-libraries re, Jonni From:

Re: [SailfishDevel] How to debug Julla

2014-02-27 Thread Jonni Rainisto
from ntp servers (don't remember if that was already included in 1.0.3.8). re, Jonni From: christopher.l...@thurweb.ch [christopher.l...@thurweb.ch] Sent: Thursday, February 27, 2014 2:26 PM To: Sailfish OS Developers; Jonni Rainisto Subject: Re

Re: [SailfishDevel] How to monitor inputs from a earphone remote control

2014-02-27 Thread Jonni Rainisto
Currently you cannot as there is no support for earphone buttons done yet. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Franck Routier (perso) [a...@mecadu.org] Sent: Thursday, February 27, 2014 3:58 PM To:

Re: [SailfishDevel] Jolla behaving weird

2014-01-27 Thread Jonni Rainisto
Bugs to together.jolla.com, keep this mailing list for devel posts, thanks. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Tone Kastlunger [users.giulie...@gmail.com] Sent: Monday, January 27, 2014 9:00 PM To:

Re: [SailfishDevel] QML Timer stops running

2014-01-15 Thread Jonni Rainisto
Hi, For the love of ***, dont use libiphb every 5 seconds, that will kill batterylife for suspend (store QA will reject apps that eat battery). Its more meant to be triggered every 10, 15, 30 etc. minutes. So if you want to make 25 minute timer that works even while suspended, then you should

Re: [SailfishDevel] MobileNetwork / MobileData automatically on after reboot - what the heck?

2014-01-13 Thread Jonni Rainisto
Hi, Did you wait for few minutes after turning the setting off, before rebooting the device? There is/was feature in btrfs filesystem that syncing changes (especially gconf) to disk can take some time, so if you reboot too quickly after setting change then old value could still be active on

Re: [SailfishDevel] Scriptlets in RPM hot allowed to Harbour

2014-01-11 Thread Jonni Rainisto
because they are runned as root. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Andrey Kozhevnikov [coderusin...@gmail.com] Sent: Saturday, January 11, 2014 11:22 AM To: Sailfish OS Developers Subject:

Re: [SailfishDevel] Scriptlets in RPM hot allowed to Harbour

2014-01-11 Thread Jonni Rainisto
Hi With current Harbour QA rules, application like that is not allowed. Issues: - privileged group is reserved for Jolla applications only, harbour apps are not allowed to have it - applications that install rpm packages are not allowed before there is setting for allowing 3rd party rpm in some

Re: [SailfishDevel] mersdk and kernel-devel

2014-01-10 Thread Jonni Rainisto
I think that someone did source code request and posted the kernel online: http://talk.maemo.org/showpost.php?p=1395881postcount=8 And if you don't trust random internet urls there is source code request information in devices about screen. re, Jonni From:

Re: [SailfishDevel] How to install user (controlled) data files for my app avoiding /usr/share

2014-01-09 Thread Jonni Rainisto
IMHO (Only my personal view, not official answer). I would not copy readonly data to $XDG_CONFIG_HOME/$NAME, I would only copy the readwrite parts off from usr/share/appname. And I would define the map data chmod 666 in spec so I could programitically remove the data.

Re: [SailfishDevel] xdg folder stuff: howto? more info

2014-01-08 Thread Jonni Rainisto
IMHO applications that use QStandardPaths should be always accepted, there must be something wrong with the process or rules if that is the cause for rejection. If QStandardPaths points to wrong directory then its a bug which should be fixed. re, Jonni From:

Re: [SailfishDevel] The Other Half I2C

2013-12-23 Thread Jonni Rainisto
NOTE: This API is not supported in initial Jolla device software. It will be available from 1.0.2.* and later Sailfish OS releases. # Enable VDD echo 1 /sys/devices/platform/reguserspaceconsumer.0/state # Disable VDD echo 0 /sys/devices/platform/reguserspaceconsumer.0/state So unfortunately

Re: [SailfishDevel] Harbour API additions

2013-12-09 Thread Jonni Rainisto
Hi, Most likely QtWidgets will remain blacklisted for ever in store. But of course you can use it in personal projects that are not going in to the store. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf

Re: [SailfishDevel] GB compile

2013-12-05 Thread Jonni Rainisto
And who says that they cannot be linked? Harbour intake rules != what developer can do. If intake rules are bad then there most likely will be alternative stores available at some point for developer mode. And we are also trying to relax Harbour intake rules in the future, but lets see when

Re: [SailfishDevel] Icon issues again

2013-12-02 Thread Jonni Rainisto
works for me, and the icon appears on my device. So maybe qa tester made a mistake re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Martin Windolph [mar...@yoktobit.de] Sent: Tuesday, December 03, 2013

Re: [SailfishDevel] Swipe Lock

2013-11-29 Thread Jonni Rainisto
Hi You need to call that before your setSource-line, as setFlags will not do anything if qml is already loaded. Usually I do it with something like this: QScopedPointerQGuiApplication app(Sailfish::createApplication(argc, argv)); QScopedPointerQQuickView

Re: [SailfishDevel] .ico : Unsupported image format

2013-11-24 Thread Jonni Rainisto
Have you tried adding following line in your yaml/spec?: Requires: qt5-plugin-imageformat-ico From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Tigre-Bleu [de...@tigre-bleu.net] Sent: Sunday, November 24, 2013

Re: [SailfishDevel] Update on application naming for Harbour applications

2013-11-23 Thread Jonni Rainisto
Hi, Domain part is not needed anymore, so its in the form of: harbour-applicationname That way for example harbour-videocam-package doesnt confilict with possible systems videocam-package. From: devel-boun...@lists.sailfishos.org

Re: [SailfishDevel] Update on application naming for Harbour applications

2013-11-23 Thread Jonni Rainisto
: [SailfishDevel] Update on application naming for Harbour applications if i already build and sent to Harbour my org.coderus.persecute application, i should rebuild it now to harbour-persecute? =( On 23.11.2013 18:34, Jonni Rainisto wrote: Hi, Whoever grabs the name first keeps it (AFAIK). So of someone

Re: [SailfishDevel] Saving state/config

2013-11-15 Thread Jonni Rainisto
] Sent: Friday, November 15, 2013 4:24 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Saving state/config On Friday 15 November 2013 05:44 Jonni Rainisto wrote: import org.nemomobile.configuration 1.0 My n00bness shows again :P Will I have to add this module to my project? The SailfishOS

Re: [SailfishDevel] How to use setContext() or what is recommended?!

2013-11-13 Thread Jonni Rainisto
Hi, Yes your setContextProperty() to rootContext is the right approach. Usually I do something like this: QScopedPointerQGuiApplication app(Sailfish::createApplication(argc, argv)); QScopedPointerQQuickView view(Sailfish::createView()); MyClass data;

Re: [SailfishDevel] QSqlDatabase cannot create db file when deployed as rpm package

2013-11-12 Thread Jonni Rainisto
User processes only have write permissions to /home/nemo So usually your application should use something like /home/nemo/.local/share/applicationame/database.db or /home/nemo/.config/applicationame/database.db re, Jonni From: devel-boun...@lists.sailfishos.org

Re: [SailfishDevel] Sailfish app - testing on real device

2013-11-12 Thread Jonni Rainisto
if you drop by in efnet irc #sailfishos channel, there are people with real devices, and we have been testing rpm packages that people have pointer url's at. Or we are also happy to test packages that you give urls in this mailing list. re, Jonni From:

Re: [SailfishDevel] Flashlight app icon experience

2013-11-11 Thread Jonni Rainisto
Icon shows up just fine, so maybe you just messed up the iconpath in desktop file? And maybe you also want to change background to be transparent. I think that design team is working on a releasing a template, but I don't know the ETA yet. re, Jonni From:

Re: [SailfishDevel] Double-tap detection

2013-11-09 Thread Jonni Rainisto
Already answered in here https://lists.sailfishos.org/pipermail/devel/2013-November/000973.html And your your git repository doesnt make working rpm nor working application, no use to ask people build from repository which are missing files to make a complete application. re, Jonni

Re: [SailfishDevel] Ignoring auto signed SSL certificates

2013-11-09 Thread Jonni Rainisto
Hi, If you dont care about chain of trust in self signed ssl certs, you can just add following in your application. That way all ssl certs are always accepted. Add these includes to main.cpp #include QSslConfiguration #include QSslSocket Add these lines in beginning of your main()

Re: [SailfishDevel] Double-tap detection

2013-11-09 Thread Jonni Rainisto
doubleclick with one finger. If you want double click behaviour so you need listen for raw event timestamps. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Jonni Rainisto [jonni.raini...@jolla.com] Sent

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-07 Thread Jonni Rainisto
...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Attila Csipa [q...@csipa.in.rs] Sent: Thursday, November 07, 2013 10:09 PM To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store On 07-Nov-13 01:42, Jonni Rainisto wrote: We are working hard on adding

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-07 Thread Jonni Rainisto
That's good, but what I don't get in that case is... does that coincidentally mean enable developer mode == disable copy protection? It doesn't mean that. It will be lightweight, does not limit resources and does not care what mode you are on. People will just have to wait for untill its ready

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Jonni Rainisto
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: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Andrey

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Jonni Rainisto
...@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

Re: [SailfishDevel] Problems with the Emulator (possible bugs?)

2013-11-04 Thread Jonni Rainisto
Hi, 1) Not part of the emulator and double clicks should be avoided anyways, bad UI experience. So forget using it :) (or make custom qevent handler and compare timestamps). 2) Hard to know the problem without seeing your code. Maybe you forgot to use property alias? Works for me. Here is

Re: [SailfishDevel] Sailfish OS on Nokia N950

2013-09-16 Thread Jonni Rainisto
Ah yes, and my bad, only N9 has NFC, so replace s/N950/N9/ from my answer :) re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Jonni Rainisto [jonni.raini...@jollamobile.com] Sent: Monday, September 16, 2013 1

Re: [SailfishDevel] FolderListModel errors

2013-08-20 Thread Jonni Rainisto
import Qt.labs.folderlistmodel 1.0 works for me at least, only thing that I added was the line in spec file (or in yaml) and installed the rpm that I created (which pulled the requirements in). Requires: qt5-qtdeclarative-import-folderlistmodel Most likely you just want to uninstall everything

Re: [SailfishDevel] alpha2 sdk: shared source directory not working ?

2013-08-14 Thread Jonni Rainisto
feature is not finished yet. br, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of W. Dobbe [winfried_...@xmsnet.nl] Sent: Wednesday, August 14, 2013 5:01 PM To: devel@lists.sailfishos.org Subject:

Re: [SailfishDevel] under which user do apps run

2013-08-11 Thread Jonni Rainisto
You must be doing something wrong :) qDebug() getuid(); system(whoami); - 10 nemo From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Wim de Vries [wsvr...@xs4all.nl] Sent: Sunday, August 11, 2013 9:53

Re: [SailfishDevel] under which user do apps run

2013-08-11 Thread Jonni Rainisto
PM To: Jonni Rainisto Cc: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] under which user do apps run On 08/11/2013 09:22 PM, Jonni Rainisto wrote: You must be doing something wrong :) qDebug() getuid(); system(whoami); - 10 nemo You're right. The above gives the same

Re: [SailfishDevel] Include Python.h: BuildRequires

2013-08-09 Thread Jonni Rainisto
: desktop-file-utils re, Jonni On 08/09/2013 11:03 AM, christopher.l...@thurweb.ch wrote: Hi Jonni Could you clarify you answer here: Zitat von Jonni Rainisto jonni.raini...@jollamobile.com: Other option would just to add depency to spec file (or to yaml), that way package gets automatically

Re: [SailfishDevel] Unsubscribing - details

2013-04-20 Thread Jonni Rainisto
you can also unsubscribe from here https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of David Greaves [david.grea...@jollamobile.com] Sent:

Re: [SailfishDevel] How to write a game on Sailfish OS?

2013-04-17 Thread Jonni Rainisto
Hi I agree that you usually you don't want to use javascript for game programming (you run in performance issues). However usually QML with C++ is pretty good choice. Or you can go with plain full screen C++ opengles2 game, or even use python or any other programming language of your

Re: [SailfishDevel] no c++ in Sailfish?

2013-04-15 Thread Jonni Rainisto
Hi, Nothing prevents you from using C++ only, but having said that its usually only fullscreen opengles2 games that goes with that approach. Usually you just make QtQuick application, where you do UI part with QML and backend part in C++ aka. hybrid app. I would encourage to go this way, of

Re: [SailfishDevel] QML support of Multitouch

2013-03-19 Thread Jonni Rainisto
Hi Seppo, Lauri's example should work pretty much unmodified, and I did a very quick hack Sailfish example code in gitorious: https://gitorious.org/sailfishtouchexample/sailfishtouchexample That seems to work at least on those armhf Sailfish devices that I have access to. For SDK that example