Re: [SailfishDevel] How to use self-signed certificates transparently in a https POST/GET request with a QT Quick application?
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 = QSslConfiguration::defaultConfiguration(); config.setPeerVerifyMode(QSslSocket::VerifyNone); QSslConfiguration::setDefaultConfiguration(config); /clip Br, jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of juice [ju...@swagman.org] Sent: Monday, August 17, 2015 10:56 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] How to use self-signed certificates transparently in a https POST/GET request with a QT Quick application? This might be a FAQ or otherwice so self-evident question it just shows up my stupidity but I really could not find any pointers on how to do this. Scenario: I am writing a client application that periodically polls for data from a web service, located on a server that may either have a real certificate or might just have a self-signed certificate. The authenticity of the server is not so important that it definitely requires a true certificate, it is just enough that the communication between the client and the server is encrypted. The user anyway configures the used server by DNS name or IP address and usually the server is controlled by the user anyway. Now how can I do this, so that in the client I need not preload any certificates, so that for example when the user changes the server address, the next request just goes thru encrypted, without caring whether the server certificate is valid? Can anybody give me a pointer to some example code? Can this be done in QML only or do I need to extend it in a c++ module? -- - Juice - ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] qml dbus send SMS
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 Qt.openUrlExternally(sms:123456789?body=XXX) But ofcourse if your not aiming for harbour and are targeting openrepos then you can ignore that. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Michael Fuchs [mic...@gmx.at] Sent: Tuesday, March 17, 2015 8:49 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] qml dbus send SMS Hi there, this is my first post in this list, so hello to everyone. I want to write a small App, which helps writing SMS for booking a parking ticket in Vienna/Austria and later other cities as well. As i read the recommended way for sending messages from qml is using dbus. I found this command for the command line, which works: $ dbus-send --type=method_call --dest=org.nemomobile.qmlmessages / \ org.nemomobile.qmlmessages.startSMS array:string:+358123456 \ string:Hello world dbus-monitor shows: method call sender=:1.41 - dest=org.nemomobile.qmlmessages serial=2 path=/; interface=org.nemomobile.qmlmessages; member=startSMS array [ string +358123456 ] string Hello world So in qml I made a DBusInterface { id: smsIf service: org.nemomobile.qmlmessages iface: org.nemomobile.qmlmessages path: / } and called the method smsIf.call(startSMS, [[], smsText.text]) The output of dbus-monitor say no such method. method call sender=:1.39 - dest=org.nemomobile.qmlmessages serial=7 path=/; interface=org.nemomobile.qmlmessages; member=startSMS array [ variant string +12312312312 ] string Hello World error sender=:1.32 - dest=:1.39 error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=7 string No such method 'startSMS' in interface 'org.nemomobile.qmlmessages' at object path '/' (signature 'avs') Is it just the wrong type of the first argument? But how can I pass the proper type? (Array of strings) Or is ther some general error? Thanks for your help, Michael. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] QtMultimedia support
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. The Pulley menus make a sound for testing purposes. Br, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Luis Manuel Ramos Da Costa [aliasb...@gmail.com] Sent: Wednesday, February 25, 2015 12:36 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] QtMultimedia support Dear Florian, Have you tried with SoundEffect ? I had problems with Audio and now I am using SoundEffect, maybe this can work. Best Regards, Luis Da Costa 2015-02-25 6:21 GMT+00:00 Florian Desneux florian.desn...@gmail.commailto:florian.desn...@gmail.com: Hello, Do you plan a support for QML QtMultimedia (mediaPlayer) for the VM? If been told on the Jolla forum that it's not supported. Is there a way to play mp3 sound in QML on Sailfish or nothing exists for the moment on the VM? I'm on Windows btw. Regards P.S.: first time I post through a mailing list :) There is always a first time you will say... -- Florian Desneux ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.orgmailto:devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] QtTouch for Sailfish?
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: https://gitorious.org/sailfishtouchexample/multipointtoucharea/ re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of wsvries [wsvr...@xs4all.nl] Sent: Friday, November 21, 2014 10:49 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] QtTouch for Sailfish? Hi, Until now I have used the standard Silica GUI items with only onClick as user interaction. I now need to support drag, pinch etc. My assumption is to use QTouchEvent, but the sailfishtouchexample does not work (and it is quite 'old' as well). DuckDuckgoing and searching through this list didn't help me further. Should I use QTouchEvent, and if so, are their special setting requirements, because I am not able to catch any events with QTouchEvent. Thanks. r wim ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] QtTouch for Sailfish?
Ah, sorry, I've used non-IDE mb script to build those projects. I added a build fix in yaml-file and pushed it into repo, and now the raw QTouchEvents example should also compile in sailfish IDE, so git pull. re, Jonni From: devel-boun...@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 did a while ago (just tested that they still work). Example of raw QTouchEvents events in QML: https://gitorious.org/sailfishtouchexample/sailfishtouchexample/ I tried this one but it causes qmake errors and seems to be from Qt4.x period I thought it was outdated. Example of MultiPointTouchArea: https://gitorious.org/sailfishtouchexample/multipointtoucharea/ This one seems to be working! re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of wsvries [wsvr...@xs4all.nl] Sent: Friday, November 21, 2014 10:49 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] QtTouch for Sailfish? Hi, Until now I have used the standard Silica GUI items with only onClick as user interaction. I now need to support drag, pinch etc. My assumption is to use QTouchEvent, but the sailfishtouchexample does not work (and it is quite 'old' as well). DuckDuckgoing and searching through this list didn't help me further. Should I use QTouchEvent, and if so, are their special setting requirements, because I am not able to catch any events with QTouchEvent. Thanks. r wim ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Building command line Linux tools for jolla
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, November 12, 2014 3:47 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Building command line Linux tools for jolla On 2014-11-11 22:09:05 +0100, Martin Kolman wrote: Dne 11.11.2014 v 22:04 Philipp Seiler napsal(a): Hi guys, It's me once again, asking a question. I already have a Jolla with some nice native apps but I want to have some command line programms for that typical geeky linux feeling on this mobile phone. Programs like zsh as shell, htop, mplayer,... I already found out that Jolla/Sailfish uses RPM as package manager so is there a public Open Build Service where I can build my tools against current sailfish versions? Sure, here: https://build.merproject.org/ To get an account just register to the Mer Bugzilla and wait 10 minutes. I'm using it for building my Sailfish OS packages and it works just fine. :) which repo do you use to build? I tried the sailfish_latest_armv7hl but there are a lot of development tools unresolvable. I add mer-core:armv7hl:devel/Core_armv7hl as additional path but there ar still some pakages missing, for example update-desktop-files and sb2-tools-qt5-armv7l-dependency-inject Is there an another repo which I should add as additional path? greets flo -- Florian Kellmer GPG ID: 0xA60FD95A ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] QSystemInfo: No such file or directory
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 [devel-boun...@lists.sailfishos.org] on behalf of Wim de Vries [wsvr...@xs4all.nl] Sent: Wednesday, November 12, 2014 11:15 AM To: Sailfish OS Developers Subject: [SailfishDevel] QSystemInfo: No such file or directory Hi, I am am trying to build a simple test app using QtMobility 1.2.2. (http://doc.qt.digia.com/qtmobility-1.2/quickstart.html) Building gives: fatal error: QSystemInfo: No such file or directory Following Qt instructions I have: .pro: CONFIG += mobility MOBILITY += systeminfo C++: #include QSystemInfo //(1) QTM_USE_NAMESPACE //(2) MerSDK has qt5-qtsysteminfo and qt5-qtsysteminfo-devel installed. SailfishOS-i486 has qt5-qtsysteminfo and qt5-qtsysteminfo-devel installed. (btw I cannot find any libs on the target or MerSDK that point to sth like mobility) I am overlooking sth. Thanks r wim ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sample app in sailfish.
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, October 16, 2014 9:45 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Sample app in sailfish. Hi, Trying to develop a sample application using SDK. I am getting Timeout waiting for reply from server error while trying to create New Mer ARM device. Can anybody help ? ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Elevating process privileges?
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: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Michał Radwański [enedil.isil...@gmail.com] Sent: Thursday, August 07, 2014 10:41 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Elevating process privileges? Hi all! Is Jolla user able to run processes that require root account? I mean something like 'nemo' is in `/etc/sudoers`. And if it is possible, how to gain privileges from C++? Is it like in Android, where I have to execute `su` command? Best regards, Michał Radwański a.k.a enedil ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] SDK Installation
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: Monday, July 21, 2014 12:10 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] SDK Installation Hello, Please take a look at the following screen shot, and let me know where I am going wrong. I am trying to install on Linux Mint17. Uname -a spits out the following: Linux vulcan 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014 i686 i686 i686 GNU/Linux Thanks! Paul. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Setting/escalating app privileges ?
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) /usr/bin/yourapplication-root-helper That would give your application a root suid bitted application that can call iwlist without problems. Please notice that invoker drops suid bits by default, so you need to have it as seperate helper binary, or have special desktop-file flags for not using invoker to launch your app. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Niels Christian Ørgaard [ncoth...@gmail.com] Sent: Saturday, May 31, 2014 4:15 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Setting/escalating app privileges ? Hi all, Is there a way to either set, or escalate, a SailfishOS app's privileges, at first runtime or at installation? Am looking to use 2 shell commands, iwlist and iwpriv, in my apps, but they require root (or similar) access-rights. (cannot quite figure out why iwlist should require root access ...) Have googled around, looked at QML and QT5 documentation, and best results have been discussions about an absence of configurable permissions; there may be a way via QT, but my brief search didn't reveal anything. I could write a quick root-password requester for my apps, asking for permission every time they need to run either command, but I think that is a pretty ugly and scary solution. Am hoping to eventually introduce at least 1 app to Harbour, so I need to locate a solution that is in line with Jolla's intents. The 2 apps: LightFish - app to control LIFX bulbs. Needs to run iwpriv wlan0 setMCBCFilter 1 upon startup, to ensure it can catch broadcast messages from LIFX bulbs on the local network, and preferably iwpriv wlan0 setMCBCFilter 3 when closing down. Have talked to LIFX about changing their network protocol, but this is (naturally) a non-trivial thing to do. Having a pop-up requesting root-password (or similar) every time this apps runs would make it too annoying to use, just to set your lighting level; Even more so, if having a pop-up asking for permissions when just triggering a colour-change on a lightbulb to indicate an SMS have been received. unnamed app - app to do basic wifi scans Would run iwlist wlan0 scan at regular intervals, present results in a table. Is simply to help me review local networks, without using my computer. Any-and-all help are welcome, as I'm at a bit of dead end here. Regards, Niels Chr. Ø. Belgium ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] QML creates a Segfault
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 From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Matthias Barmeier [barme...@barmeier.com] Sent: Tuesday, May 13, 2014 2:57 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] QML creates a Segfault OK, its just a bit weird that the same program works without a WorkerScript. The WorkerScript is just to make the gui more repsonsive it has no relevance to the function. Thanks. Am 13.05.2014 13:31, schrieb Juha Kallioinen: On 13.05.2014 14:00, Matthias Barmeier wrote: Hi, when trying to download data in a WorkerScript thread I got this: bash: line 1: 1459 Segmentation fault QT_NO_JOURNALD_LOG=1 DISPLAY=:0.0 /usr/bin/CalDav Can somebody explain if I can avoid this or what the reason is ? That script part is how Qt Creator runs your application in the device/emulator. So it just means that /usr/bin/CalDav crashed to a SEGFAULT and you'll need to figure out why. Qt Creator launches the application in the device/emulator almost like this: ssh nemo@device_address QT_NO_JOURNALD_LOG=1 DISPLAY=:0.0 /usr/bin/applicationname It does not use ssh command, but an ssh library, which is part of Qt Creator. The QT_NO_JOURNALD_LOG =1 is there to make the application not put its output to journald, but to stdout/stderr instead so that Qt Creator can display it. Best regards, Juha ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.orgmailto:devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Car Connectivity and SailfishOs
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. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Gokul Kartha [gogul.kar...@ixonos.com] Sent: Friday, April 25, 2014 7:13 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Car Connectivity and SailfishOs Hello Developers, I would like to know whether SailfishOs has some implementations/recent plans for Car Connectivity Stack Integration ? -- Check out our latest multi-window solution for Android at Ixonos Techbloghttp://techblog.ixonos.com/2013/09/ixonos-multi-window-2nd-generation.html. Ixonos IVI Connect http://www.ixonos.com/connected-devices/automotive-solutions : Technologically superior solution with shorter integration time at less cost . Best Regards, Gokul Sivasankaran Kartha Senior Software Engineer Ixonos Plc , Mattilanniemi 6 , P.O. Box 533, FI-40101 Jyväskylä Finland mobile +358 40 162 2170 email: gogul.kar...@ixonos.commailto:gogul.kar...@ixonos.com http://www.ixonos.com The contents of this e-mail and its attachments are addressed to the intended recipient only, and are confidential and may contain legally privileged information. If you are not the intended recipient, please notify the sender by replying to this e-mail and delete the message from your system. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] No QSerialPort
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 compiles just fine inside the SDK) and bundle that inside your application. You might want to consider BT devices and using RFCOMM over that as that would be much simpler approach. br, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of wsvries [wsvr...@xs4all.nl] Sent: Tuesday, March 25, 2014 10:46 AM To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] No QSerialPort Thanks, Alejandro Exojo schreef op 2014-03-24 21:53: El Sunday 23 March 2014, Wim de Vries escribió: So, it should be available in Sailfish. No, is available inside Qt, not necessarily provided for Sailfish. I thought Sailfish would include all modules of Qt Have to recheck the errors, but it looked like the libs and headers were not there (QtSerialPort/QtSerialPort no such file). I already told you that you might consider copying the module to your application and bundle it. Or see if Qt Serial port is packaged for mer, and ask for inclusion (or package if is not). Any Qt addon is a safe bet since qt- project has some serious commitment to ABI/API stability. I did this on the notebook Qt5.1 versions of my app. (even a boost-serial version before QSerial) But doing this with Sailfish is far more complex: it has to be available on the Mer VM and the Sailfish VM (and later Sailfish device). I am not experienced with VMs. The nice thing about using Qt is not having to worry about the implementation (and updates) of the modules. (The Sailfish (Target) manager is also not able to find the serialport module). I need all the time for porting to Sailfish, esp. C++GUI2Qml ;-( So, support for this module is a must for my app. Or just explain what serial port you want to use and for what reason, so Sailors see the need to do the work themselves... and satisfy my curiosity. ;-) aircraft navigation+more app: USB/serial device1: -external GPS USB/serial device2: -air press sensor (altitude) -humidity sensor -temp sensor No rocket science, works flawless on ubuntu notebook. r wim ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Folder permissions
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 behalf of Iosif Hamlatzis [i.hamlat...@gmail.com] Sent: Thursday, March 13, 2014 8:22 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Folder permissions Thank you very much, I've just tested my game using the XDG basedir and it worked so I can continue my port of the game by modifying the rest of the code. Just one question, will the folders under .config/.cache/.local be removed if I uninstall the game? I've noticed that using the XDG basedir to read the environment variables I get something like: //MyGameName but no folder is created, so I programmatically created the MyGameName folder and placed my config (read/write) files. Since the GUI from the emulator doesn't uninstall the actual game I ssh into the emulator and called zypper remove MyGameName and it was uninstalled but the folders with all their contents I had created weren't erased. If this happens in the actual device then at some point there isn't going to be any space available on the device. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to monitor inputs from a earphone remote control
Hi, Afaik there is no low level support (correct me if I'm wrong). Someone would need to implement a kernel module, that exposes /dev/input/event[x] for those buttons. But last time when I checked there was no such module in firmware. But kernel is of course open source, so nobody is stopping you or the community to do it. Or make a feature request in together.jolla.com and hope that it will be picked up in some future sw update. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Franck Routier (perso) [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 as there is no support for earphone buttons done yet. Thanks for your quick answer. So I understand there is no support in the sdk. But is there also no low level support ? With X, I would use xev to monitor events. Is there a similar tool for Wayland ? Franck -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTEEWMAAoJEGEvoAir78RorV4H/j2X1BDOsOvtP1t6rxjtu7kE arl170Lj4iDaAhnq3T0ZzIj1UUfD5hwh5iJVR/qivY2Qx9WzqR/1a63TcKNrtR9W elASs5chm/X+Y8A7WsRDeXa9YtUpLn5BoiIXGPzCZCC60bg7PeEpEqOv5qQvDxd3 2dr6RtwYX8hWOL3qLZlXjSCoLD9Si5++NAsYxLeI/t7rolW1gAGfGhWd0znewSNb yysmEbSkqP7veSQhQwsCTN4mFjBLQrk1dTb/4GEGNTiWw0x1lkx7/pYgys9bRxe8 Z0iG8GVw7ZKVcxXiuKKkpzodeI9OQRH/Z6FoiQR95+oH3khqkIbaDAlHuSAeimc= =Hqt6 -END PGP SIGNATURE- ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML C++ Integration not working in Sailfish
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: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of antonio.cano.go...@ovi.com [antonio.cano.go...@ovi.com] Sent: Thursday, February 27, 2014 12:17 PM To: Sylvain B.; Sailfish OS Developers Subject: Re: [SailfishDevel] QML C++ Integration not working in Sailfish Hi sylvain, This is not the case a renamed the variable so the have exactly the same name. On the other hand, may be the problem is that I am calling it from .js file by the next code: .pragma library .import QtQuick 2.0 as QQ var appState; function getAppState() { return appState; } function newAppState(page) { appState = page; getAppState().k=1; getAppState().m=2; return appState; } // Funciones especificas function createBloomFilter() { console.log(Voy a llamar a generate filter) bloomfiltersdata.generateFilterInvokable2() console.log(Ya he llamado a generate filter) } And I call this from the qml by: import QtQuick 2.0 import Sailfish.Silica 1.0 import pages import pages/content import pages/content/logic.js as Logic import fi.helsinki.cs 1.0 ApplicationWindow { initialPage: Component { FirstPage { } } cover: Qt.resolvedUrl(cover/CoverPage.qml) id: appWin property var appState: Logic.newAppState(appWin); property ApplicationWindow appWin: appWin property Bloomfilters bloomfilters: bloomfilters property var k property var m property bool filterCharged: false } Someone seems something unusual in this code? Best Regards and Thanks, A. Cano El Miércoles 26 de febrero de 2014 13:24, Sylvain B. sth...@hotmail.com escribió: Yes, add a s You declared bloomfiltersdata and you are trying to use bloomfilterdata... Date: Wed, 26 Feb 2014 04:02:22 -0800 From: antonio.cano.go...@ovi.com To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] QML C++ Integration not working in Sailfish Hi Andrey, The output is: ReferenceError: bloomfilterdata is not defined I am calling it from a .js Some idea about how can I make that this is also defined there. Thanks! El Miércoles 26 de febrero de 2014 12:18, Andrey Kozhevnikov coderusin...@gmail.com escribió: start app in terminal and show output please On 26.02.2014 17:15, antonio.cano.go...@ovi.commailto:antonio.cano.go...@ovi.com wrote: Hi Thomas, I did both modification but the code does not work yet. Here is the new code: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-rootContext()-setContextProperty(bloomfiltersdata, bloomfilters); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); return app-exec(); El Miércoles 26 de febrero de 2014 12:01, Thomas Perl th.p...@gmail.commailto:th.p...@gmail.com escribió: On 2014-02-26 11:48, antonio.cano.go...@ovi.commailto:antonio.cano.go...@ovi.com wrote: I tried this: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); Bloomfilters * bloomfilters = new Bloomfilters(); view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml)); view-showFullScreen(); view-rootContext()-setContextProperty(Bloomfilters, bloomfilters); return app-exec(); But it is not working yet. Two things: 1. Call setContextProperty() right before before setSource(), so it's already available when the QML content is loaded. 2. Use lowercase for context property names (bloomfilters instead of Bloomfilters). In some places, QML interprets IDs starting with an upper case letter as a type name, and that won't work then, therefore stick to lowercase. HTH :) Thomas ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to debug Julla
Yes, usually you get accurate time from your GSM network depending on your operator. Sometimes users do start the phone without SIM attached, and in that case people can forget 1970 or some other wrong year in the device. In future updates there are improvements to automaticly fetch time also 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: [SailfishDevel] How to debug Julla Hi Jonni In my case getting rid of the latency in my home network seemed to do the trick. Having got the latency down to normal levels, I was able to upgrade the phone, use the store, activate developer mode etc. without a hitch. Interestingly though, the phone is more than 1.5 mins behind real time. This raises the question, what is supposed to regulate time on a Jolla? Should not reasonably accurate time be available from the GSM signal? PkCon shows that ntpdate is available, but not ntpd (and given that the phone will not always have an active udp network, ntpd would probably not be much help anyway). grüsse Chris Zitat von Jonni Rainisto jonni.raini...@jolla.com: Few things to check: - date and clock is current. https connection will fail if clock is even a minute behind real time. - you haven't touched SSU button in developer mode, if you have then you need to switch your domain back to sales. If nothing else is helps then setting time and doing factory reset might do the trick as last resort. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of christopher.l...@thurweb.ch [christopher.l...@thurweb.ch] Sent: Thursday, February 27, 2014 11:48 AM To: Sailfish OS Developers; Tony Cc: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] How to debug Julla Hi Tony I initially had great problems upgrading my Jolla, installing stuff from the store, and even activating developer mode. After lots of hunting around, experimentation and measuring, I concluded that the problem was high latency in my home network, and the Jolla's poor tolerance for this. (Other similar devices could upgrade no problem). I stripped my home network down to the bare essentials, the latency issues vanished, and hey presto I could install developer mode, upgrade my Jolla etc. Maybe you have a similar issue? Chris Zitat von Tony tony.chend...@gmail.com: Hi, My Julla ?s system version is 1.0.0.5. I tried to upgrade the system , but system mentioned that is the newest version. Besides , I also tried to start using development mode. The system noticed that development package install failed. Do you know how to debug it ? tony.chend...@gmail.com ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to monitor inputs from a earphone remote control
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: devel@lists.sailfishos.org Subject: [SailfishDevel] How to monitor inputs from a earphone remote control Hi, I have earphones plugged in, with a three buttons remote control. How can I monitor how the remote control translate on the linux (wayland ??) level ? How can I get these commands in my QML application ? Thanks, Franck ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla behaving weird
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: devel@lists.sailfishos.org Subject: [SailfishDevel] Jolla behaving weird Hey, so lately things have gone wild on my jPhone. First facebook transfer engine plugin disappeared from the list. Successively, phone started booting randomly when opening email client (didn't use to happen before), and browsing (had happened a few times). How to get more info on the background? I will keep on monitoring and reporting, and will create a support ticket as well. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML Timer stops running
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 do libiphb to wake up after 25 minutes. Or if you want to make libiphb to wake up device every 10 minutes, you can make your application to check how much time has really passed since last wakeup by checking hw clock (as that is the only clock which is updated even while beeing suspended) timestamps like this: static void tv_get_monotime(struct timeval *tv) { #if defined(CLOCK_BOOTTIME) struct timespec ts; if (clock_gettime(CLOCK_BOOTTIME, ts) 0) if (clock_gettime(CLOCK_MONOTONIC, ts) 0) qFatal(Can't clock_gettime!); TIMESPEC_TO_TIMEVAL(tv, ts); #endif } From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Thomas Tanghus [tho...@tanghus.net] Sent: Tuesday, January 14, 2014 4:11 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] QML Timer stops running On Tuesday 14 January 2014 13:05 Graham Cobb wrote: On 14/01/14 01:14, Thomas Tanghus wrote: On Tuesday 14 January 2014 01:53 Ove Kåven wrote: No matter what OS or platform you're on, counting the number of times your timer callback is called is *never* a good idea, even on desktop PCs. Timer callbacks can be skipped for any number of reasons (heavy system load, laptop suspend, etc). Good point. That will also at least work around the issue when in pre-deep- sleep. I agree with Ove (that is how every timer function I have ever worked on works, from interrupt handlers in embedded system kernels through to the GPE Calendar app) -- repeating timers are a convenience, but are never treated as accurate. But I would also suggest that for any apps that do timing, when the app is not being displayed (and so the screen doesn't need to be updated), the code should switch to using a single-shot timer set to the time when the next event happens, instead of using repeating timers. If the kitchen timer is set for 25 minutes and the screen is blank you don't want your app waking up every second. Of course, it is a little bit tedious to write the code to cancel the long timer and restart short timers when the screen is turned back on but the user will thank you for it. It sounds like a good idea, and should be fairly easy to implement. I just don't know how to detect when the screen is off (this is my first baby-steps in mobile coding). We have the applicationActive property, but the cover can still be active and visible while it is false. Unfortunately, I have no idea how you actually set up a single shot timer that will fire correctly in deep sleep from the Qt environment (the last time I implemented that logic was on Maemo). Rainisto pointed to libiphb[1] which I have now implemented with a crude wakeup every 5-10 seconds. Not optimal, but I'm OK with it for v 0.1.1 ;) [1] http://talk.maemo.org/showpost.php?p=1401318postcount=2 -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] MobileNetwork / MobileData automatically on after reboot - what the heck?
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 next reboot. If you waited several minutes before rebooting, then you should raise a bug in together.jolla.com. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Simon Bolek [simon.bo...@googlemail.com] Sent: Monday, January 13, 2014 11:16 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] MobileNetwork / MobileData automatically on after reboot - what the heck? Problem: After i turned on the Location (BTW waited the whole eternity to gain GPS signal) and turned the MobileData OFF, i noticed that after reboot MobileData is activated again! WHY??? I do not have a mobile data plan on my sim card, so i want it to be deactivated, and no app whatsoever has rights to turn it on (for that I could've bought android right away). Is this a BUG or a FEATURE? br simon ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Scriptlets in RPM hot allowed to Harbour
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: [SailfishDevel] Scriptlets in RPM hot allowed to Harbour Why RPM scriptlets not allowed to harbour? ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Scriptlets in RPM hot allowed to Harbour
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 future update Most likely you could do an application that uses holes in the system that passes the QA, but the current answer is that unfortunately that kind of application is not allowed. But not all hope is lost, in some coming update the policy might change when the 3rd party rpm setting comes to device. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Semuonov Basil [basil.semuo...@gmail.com] Sent: Saturday, January 11, 2014 11:45 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Scriptlets in RPM hot allowed to Harbour I guess, that I am the person who started this story about scriptlets. As Thomas suggested at his mail ( https://lists.sailfishos.org/pipermail/devel/2014-January/002767.html ), here is the problem which I personally trying to solve using postinst scriplet: Sailfish use zypp as backend, packagekit as frontend, and ssu for repository management. Ssu does have global repositories, and user repositories. By using packagekit you can only enable and disable repositories. You should use ssu to add or remove repositories. But as nemo user, you cannot add/remove user repositories, root permissions are required to perform actual repository list update (ssu ur). Scriptlet is used to create nemo:privileged file at /etc/zypp/repos.d/ so it can be updated(rw access) from warehouse application. Of course you can use %files with %defattr(-,nemo,privileged,-) /etc/zypp/repos.d/openrepos.repo but this way is already banned, since you can only deploy to predefined locations. So, the question is, how to achieve this, don't violate policy and be at harbour? Another use-case (as Andrey Kozhevnikov mentioned) is sending quit signal to app which constantly running at background(recieving updates or whatever). So it does quits before update, and auto-starts after update completes. With all that recent discussion, please do update https://harbour.jolla.com/faq and specify, that scriptlets are forbidden. Regards, Basil. -- Semuonov Basil --- Line of cut --- Linux everywhere... ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] mersdk and kernel-devel
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: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Kimmo Lindholm [kimmo.lindh...@eke.fi] Sent: Friday, January 10, 2014 4:58 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] mersdk and kernel-devel ahoy, How can i install kernel-devel to mersdk for compiling modules for SailfishOs-armv7hl ? Can’t find module.h -kimmo ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to install user (controlled) data files for my app avoiding /usr/share
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. From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Wim de Vries [wsvr...@xs4all.nl] Sent: Thursday, January 09, 2014 10:05 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] How to install user (controlled) data files for my app avoiding /usr/share Hi, I am converting my aircraft navigation app to Sailfish. It comes (default) with OpenStreet based maps + 3D data files of Western Europe (in RPM). Most users will use this map, but some users may use their home made maps (generated by a PC application). In the latter case, the users will delete this W-Europe map (it takes up quite some disk space). So far so good, but the installation/RPM is a problem: Harbour says that I should install the app data (very much bytes for the W-Eu map) in /usr/share/$NAME and in the first run of the app, copy them to $XDG_CONFIG_HOME/$NAME. But now I am stuck with an enormous amount of (useless) data in /usr/share/$NAME that cannot be removed. Any suggestions? Thanks. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] xdg folder stuff: howto? more info
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: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Wim de Vries [wsvr...@xs4all.nl] Sent: Wednesday, January 08, 2014 10:55 AM To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] xdg folder stuff: howto? more info Hi, I am adding some more info to my question. I am using QStandardPaths. Harbour is refusing my app, stating that I should use $XDG_CONFIG_HOME Still, this var is not set. The only ones are: XDG_SESSION_ID value: c5 and XDG_RUNTIME_DIR value: /run/user/10 I need to add data files during installation, and the user should be able to add/remove data files from his PC via USB. Thanks. On 01/07/2014 07:29 PM, Wim de Vries wrote: Hi, Can someone please explain how the XDG folders work. These env vars seem not be set when I try to read the values with QProcessEnvironment. So how can I read/write to those folders (C++)? And how to access them from QML? The documention/FAQ only gives a very general spec. I must be missing sth. Thanks. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] The Other Half I2C
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 you have to wait for next update before you can unable 3.3V pin from user space. But that should happen 'soon'... From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Kimmo Lindholm [kimmo.lindh...@eke.fi] Sent: Monday, December 23, 2013 4:49 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] The Other Half I2C Anchors aweigh! Just hooked up scope to I2C bus on pogo pins, and there is life! Can someone point me in correct direction to enable 3.3V pin? 3.3V seems to be active just for a while when I press the cover detector switch and after eeprom in address 0x50 is tested 3.3V is gone. Best Regards, - --... ...-- -.. . --- ..--- --.- .--. Kimmo Lindholm Hardware and Platform Development Manager EKE-Electronics Ltd. Piispanportti7, FI-02240 Espoo, Finland Tel. +358 9 6130 3305, fax +358 96130 3300, mobile +358 40 500 0081 kimmo.lindh...@eke.fi www.eke.comhttp://www.eke.com This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Harbour API additions
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 of Luciano Montanaro [mikel...@gmail.com] Sent: Monday, December 09, 2013 4:34 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Harbour API additions Good news... Does this mean linking to QtWidgets is also accepted? My application needs QtWebKit, and I discovered QtWidgets is a dependency as well. I am not relying on Widgets directly, but QWebPage needs a QApplication to work. At least with the current SDK. I will try to remove the dependency, it is quite heavy for the simple task of my application, but it will take some time. Regards, Luciano On Mon, Dec 9, 2013 at 2:17 PM, kher...@khertan.net wrote: Hi, Still no news about python ? Regards, -- Benoît HERVIER - http://khertan.netLe 09/12/13 13:23 Robin Burchell a écrit : Ahoy, We have today added two new items to the Harbour-accepted list of supported APIs. = QtWebkit = Due to popular demand, we are now accepting applications using QtWebkit directly, both QML and C++. It should be noted that QtWebkit has no upstream support, and we do not have any real resources dedicated to working on it. = libmlite = libmlite is a small library primarily encompassing small pieces that were useful from libmeegotouch, like desktop file parsing. Its primarily intended purpose is to ease porting. Onward sails, The Harbour Crew ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list -- Luciano Montanaro Anyone who is capable of getting themselves made President should on no account be allowed to do the job. -- Douglas Adams ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] GB compile
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 or if that happens. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Cleber Rodrigues [cleber@gmail.com] Sent: Thursday, December 05, 2013 11:55 AM To: Sailfish OS Developers Subject: Re: [SailfishDevel] GB compile It may not be that simple. For once, Sailfish apps can not be linked to qtwidgets (IIRC), and this is probably what that app uses. A new interface using QML would probably need to be written. 2013/12/4 Randolph rdohm...@gmail.commailto:rdohm...@gmail.com Hi, can someone give a hint how to compile this encrypted messenger for Sailfish ? http://goldbug.sf.net Regards Randolph ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Icon issues again
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 12:12 AM To: Sailfish OS Developers Subject: [SailfishDevel] Icon issues again Hi, my app “Morzyn” got rejected today because of the following: “1) I installed morzyn application Expected result: icon and label of application appears. Actual result: Icon of application is missing. There is only label.” I followed the dev FAQ and can’t find any mistake in my RPM. My package name ($NAME) is harbour-morzyn. So in my desktop file I use Icon=harbour-morzyn The icon path in my RPM is: /usr/share/icons/hicolor/86x86/apps/harbour-morzyn.png What am I doing wrong? A copy of my RPM is stored here: https://www.hidrive.strato.com/lnk/LMmDLZkZ Thanks Martin ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Swipe Lock
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 view(Sailfish::createView()); // Disable swipe gestures in proper way view-setFlags(view-flags()|Qt::WindowOverridesSystemGestures); Sailfish::setView(view.data(), qrc:/main.qml); re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Mariano Boragno [marianobora...@gmail.com] Sent: Friday, November 29, 2013 6:54 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Swipe Lock Hi guys, I'm doing a game that requires to lock the system gestures (it's a game for babies, so I have to lock the swipe to avoid the baby from surfing all around the phone :) ) According to https://sailfishos.org/wiki/Porting/Harmattan it must be done through Qt::WindowOverridesSystemGestures, which I guess must be set on the main window. What I've done is: QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView *view = SailfishApp::createView(); view-setSource(SailfishApp::pathTo(qml/myGame.qml)); view-showFullScreen(); view-setFlags(view-flags() | Qt::WindowOverridesSystemGestures); return app-exec(); But I can still swipe the app away in the emulator. What am I doing wrong? Thanks a lot, regards... ...Mariano Boragno... ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] .ico : Unsupported image format
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 5:59 PM To: Sailfish OS Developers Subject: [SailfishDevel] .ico : Unsupported image format Hi sailors, I've just realized that .ico is not supported by QtQuick Image {} QML Component QML Image: Error decoding: http://www.jollatides.com/favicon.ico: Unsupported image format I'm surprised as I was assuming that ico files shall be displayed as it is a defacto icon standard. Is there another way to display a .ico in QML? Thanks, Antoine ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Update on application naming for Harbour applications
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 [devel-boun...@lists.sailfishos.org] on behalf of zoltan.lu...@gmail.com [zoltan.lu...@gmail.com] Sent: Saturday, November 23, 2013 7:59 AM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Update on application naming for Harbour applications will such name be accepted by package uploader of Jolla Harbour? '_' were not accepted before there... Andrey Kozhevnikov írta ekkor: 2013.11.22. 15:39 really? harbour-org.coderus.application how domain.organization.application naming can clash with device packages? why? On 22.11.2013 20:32, Robin Burchell wrote: Ahoy, In Iekku’s mail yesterday, we referred to application names needing to use a “dotted” form (e.g. com.example.myapp). It was brought to our attention that this isn’t factually possible at this time due to limitations in Qt Creator/qmake, so we’re unfortunately forced due to time limitations - so as to not inconvenience you developers - to change plans. The new requirement is that application names must start with a prefix of “harbour-“. The reason (if it wasn’t clear) for this requirement is so that applications do not clash with other installed packages on the device. We’re very sorry for the confusion. Thanks for understanding. Should you have any questions on this or anything else, feel free to send an e-mail as always! P.S. We’ll be launching a FAQ explaining this (and other store requirements) in detail early next week, unless anything unforeseen crops up. Happy hacking, The Jolla Crew ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Update on application naming for Harbour applications
Hi, developer-care at jolla.comhttp://jolla.com should be able to answer that one. All my answers are just AFAIK as I'm not in the team that does the Harbour and it's policies. My guess would be that unfortunately one more rename is needed. I already renamed couple of my personal projects and submitted them in (still in QA). From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Andrey Kozhevnikov [coderusin...@gmail.com] Sent: Saturday, November 23, 2013 2:35 PM To: devel@lists.sailfishos.org Subject: Re: [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 before you takes harbour-videocam, you can do something like harbour-videocam-artem or some other unique name. So if $NAME == harbour-videocam then: /usr/bin/$NAME == /usr/bin/harbour-videocam /usr/share/$NAME == /usr/share/harbour-videocam /usr/share/icons/hicolor/86x86/apps/$NAME.png == /usr/share/icons/hicolor/86x86/apps/harbour-videocam.png So forget the domain names with dots as current tools dont really support them currently. From: devel-boun...@lists.sailfishos.orgmailto:devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.orgmailto:devel-boun...@lists.sailfishos.org] on behalf of Artem Marchenko [artem.marche...@gmail.commailto:artem.marche...@gmail.com] Sent: Saturday, November 23, 2013 1:26 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Update on application naming for Harbour applications What if there are two packages in app store named harbour-videocam? Or whoever grabs the name first keeps it? What about the main app binary name and it's data folder? Shall they be harbour-videocam or com.supercell.videocam? Or harbour-com.supercell.videocam? Cheers, Artem. On Sat, Nov 23, 2013 at 1:11 PM, Jonni Rainisto jonni.raini...@jolla.commailto:jonni.raini...@jolla.com wrote: 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.orgmailto:devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.orgmailto:devel-boun...@lists.sailfishos.org] on behalf of zoltan.lu...@gmail.commailto:zoltan.lu...@gmail.com [zoltan.lu...@gmail.commailto:zoltan.lu...@gmail.com] Sent: Saturday, November 23, 2013 7:59 AM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Update on application naming for Harbour applications will such name be accepted by package uploader of Jolla Harbour? '_' were not accepted before there... Andrey Kozhevnikov írta ekkor: 2013.11.22. 15tel:2013.11.22.%2015:39 really? harbour-org.coderus.application how domain.organization.application naming can clash with device packages? why? On 22.11.2013 20:32, Robin Burchell wrote: Ahoy, In Iekku’s mail yesterday, we referred to application names needing to use a “dotted” form (e.g. com.example.myapp). It was brought to our attention that this isn’t factually possible at this time due to limitations in Qt Creator/qmake, so we’re unfortunately forced due to time limitations - so as to not inconvenience you developers - to change plans. The new requirement is that application names must start with a prefix of “harbour-“. The reason (if it wasn’t clear) for this requirement is so that applications do not clash with other installed packages on the device. We’re very sorry for the confusion. Thanks for understanding. Should you have any questions on this or anything else, feel free to send an e-mail as always! P.S. We’ll be launching a FAQ explaining this (and other store requirements) in detail early next week, unless anything unforeseen crops up. Happy hacking, The Jolla Crew ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list -- Artem Marchenko http://agilesoftwaredevelopment.com http://twitter.com/AgileArtem ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Saving state/config
Yes your .spec file should have following line if you want to use the plugin: Requires: nemo-qml-plugin-configuration-qt5 From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Thomas Tanghus [tho...@tanghus.net] 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-i486-x86 target only comes with org.nemomobile.ngf -- Med venlig hilsen / Best Regards Thomas Tanghus ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to use setContext() or what is recommended?!
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; view-rootContext()-setContextProperty(myObject, data); Sailfish::setView(view.data(), qrc:/main.qml); From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Gabriel Boehme [m.gabrielboe...@googlemail.com] Sent: Wednesday, November 13, 2013 4:58 PM To: Sailfish OS Developers Subject: [SailfishDevel] How to use setContext() or what is recommended?! Hi sailors, in the very first (Qt4 version) of the SDK I ported an easy application, that is using a list model. To connect the list model and also my main logic stuff I used the setContextProperty() method. In the first Qt5 SDK version I had to work a bit around that (created a view from Sailfish::createView() and used the views data().rootContext()-setContextProperty() methods. But now in the latest version I'm not quite sure about, how to do that? Or better: What is the recommended way to connect QML UI with C++ logic and add a model for a view? I'm a bit confused, because coming from Python/PySide I always used it that way with QDeclarativeView and get a bit lost with Qt5 and QQuickView and QQuickApplication and all this stuff, that changed also between 5.0 and 5.1, doesn't it? :-/ Would be great to get some advice! Thank you very much! ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QSqlDatabase cannot create db file when deployed as rpm package
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 [devel-boun...@lists.sailfishos.org] on behalf of Martin Kampas [martin.kam...@ubedi.net] Sent: Tuesday, November 12, 2013 10:25 AM To: Sailfish OS Developers Subject: Re: [SailfishDevel] QSqlDatabase cannot create db file when deployed as rpm package Hi My guess is missing write permissions under /usr/share. Are you sure with the location you chose? I would expect it somewhere under /var instead. Google for Filesystem Hierarchy Standard if you are not sure about this. Martin On Tuesday, November 12, 2013 12:12:53 AM Stockona wrote: Source code: Q_DECL_EXPORTintmain(intargc,char*argv[]) { ... FileHandler*fileHandler=newFileHandler(); view-rootContext()-setContextProperty(fileHandler,fileHandler); ... } FileHandler::FileHandler(QObject*parent):QObject(parent){ ... // /usr/share/Stockona/ QStringdbPath=QString(DEPLOYMENT_PATH); dbPath.append(.stockona_db); qDebug()DBpath=dbPath; QSqlDatabasedb=QSqlDatabase::addDatabase(QSQLITE); db.setDatabaseName(dbPath); // Cannot open database when deployed as rpm boolok=db.open(); ... } From: Andrey Kozhevnikov coderusin...@gmail.com To: devel@lists.sailfishos.org Sent: Monday, November 11, 2013 11:32 PM Subject: Re: [SailfishDevel] QSqlDatabase cannot create db file when deployed as rpm package My project working with QSQLITE local database, and everything good :) Share your code and we can found issues. On 12.11.2013 02:35, Stockona wrote: When I switched to Deploy by copying binary, the database is created and connected correctly. Changing the deployment to rpm package the same code just failed with database error message out of memory Error opening database. I checked in Emulator terminal and the database file was not created at all. Is this a permission issue? How do I work around this? Thanks in advance! ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list -- Běže, za zvýšené produkce tepla a světla, potil se a zářil... ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Sailfish app - testing on real device
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: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Andreas Enbacka [aenba...@gmail.com] Sent: Tuesday, November 12, 2013 12:01 PM To: Sailfish OS Developers Subject: [SailfishDevel] Sailfish app - testing on real device Hello, I am working on porting QSpot Spotify client to SailfishOS, and wondered how reliable testing should be performed. Currently I can test the application on the Emulator; however I have issues with no sound and random application startup issues (not present on current N9/N900 version of QSpot based on the same code / library). Should I assume that these could be issues with the emulator, and it might work correctly on the real Jolla device? And is the only current possibility to get real device test feedback to submit a rpm package to the Jolla Harbour? Regards, Andreas Enbacka ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Flashlight app icon experience
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: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Artem Marchenko [artem.marche...@gmail.com] Sent: Tuesday, November 12, 2013 12:26 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Flashlight app icon experience Hi all Does anybody know exact app icon requirements? I know that it has to be 90x90 PNG and somehow I was able to make one icon that works fine, but I failed to generate the 2nd one. Whatever I do, the icon in emulator is displayed as just an empty space :/ And I did check that the proper file is actually installed to the proper place, I even manually replaced file in the emulator to verify that it's exactly the icon file contents that is problematic. It has to do something with the allowed color profile or transparency or interlacing or DPI or max file size or something else like this. I attached one of the files that didn't work while looking perfectly legal to me. Could somebody, please, have a look? Or do you maybe have a GIMP or Photoshop template and PNG generation instructions that just work? Best regards, Artem. -- Artem Marchenko http://agilesoftwaredevelopment.com http://twitter.com/AgileArtem ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Double-tap detection
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 From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Artem Marchenko [artem.marche...@gmail.com] Sent: Saturday, November 09, 2013 4:58 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Double-tap detection Hi All Has anybody tried intercepting double taps in the Jolla app? I tried it on simulator (using MouseArea onDoubleClicked) and I swear I saw double clicks happening a couple of times, but then I've lost it. I tried playing with preventStealing and propagateComposedEvents, didn't help. Sure I can implement my own timer based double click detection, but.. that's somehow wrong, double clicks should work in just a MouseArea. - Am I missing something very basic? - Or is it just an emulator issue (maybe Mac + virtualbox somehow eat second clicks on the way)? It would be real great if somebody could run a small throwaway demo on a real device or at least on a non-Mac simulator and tell if it works. Just build and run app from here, it's just one screen with logs right on screen, I promise :) https://github.com/amarchen/throwaway-trials-sailfish/tree/double-click-testing Best regards, Artem. P.S. If you wonder why I want doubletaps at all, I find it a convenient way for locking-unlocking app input for the app that well, should avoid reacting to accidental input sometimes. -- Artem Marchenko http://agilesoftwaredevelopment.com http://twitter.com/AgileArtem ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Ignoring auto signed SSL certificates
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() QSslConfiguration config = QSslConfiguration::defaultConfiguration(); config.setPeerVerifyMode(QSslSocket::VerifyNone); QSslConfiguration::setDefaultConfiguration(config); re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Tigre-Bleu [de...@tigre-bleu.net] Sent: Saturday, November 09, 2013 7:56 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Ignoring auto signed SSL certificates 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.netmailto: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] Double-tap detection
Hi, http://oi41.tinypic.com/2dj2srr.jpg Well I manually fixed your package, and yes you should never really use doubleclicks, but if you happen to click madly with 2 fingers simultaneously, you sometimes get event triggered. Default treshold values are so high that you basicly never can get 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: Saturday, November 09, 2013 7:10 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Double-tap detection 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 From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Artem Marchenko [artem.marche...@gmail.com] Sent: Saturday, November 09, 2013 4:58 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Double-tap detection Hi All Has anybody tried intercepting double taps in the Jolla app? I tried it on simulator (using MouseArea onDoubleClicked) and I swear I saw double clicks happening a couple of times, but then I've lost it. I tried playing with preventStealing and propagateComposedEvents, didn't help. Sure I can implement my own timer based double click detection, but.. that's somehow wrong, double clicks should work in just a MouseArea. - Am I missing something very basic? - Or is it just an emulator issue (maybe Mac + virtualbox somehow eat second clicks on the way)? It would be real great if somebody could run a small throwaway demo on a real device or at least on a non-Mac simulator and tell if it works. Just build and run app from here, it's just one screen with logs right on screen, I promise :) https://github.com/amarchen/throwaway-trials-sailfish/tree/double-click-testing Best regards, Artem. P.S. If you wonder why I want doubletaps at all, I find it a convenient way for locking-unlocking app input for the app that well, should avoid reacting to accidental input sometimes. -- Artem Marchenko http://agilesoftwaredevelopment.com http://twitter.com/AgileArtem ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla Harbour and Jolla Store
DRM has nothing to to do with with copy protection. DRM on mobile devices usually means supporting DRM PlayReady (Microsoft) or Widevine L1 L2 L3 L4 (google). And we dont have those in Sailfish OS. There is no Aegis on the system, and after you enable developer mode, you have _true_ root access to the device and can freely replace system binaries and do what ever you want with your device (you may lose warranty when you enable developer mode). Everything is crackable, copy protection library is just supposed to make cracking and copying process hard enough so that most of the people will just choose to use store for getting their rpm's. And to give app developers easier ways to give some protection their applications so direct .rpm file copy from device to device wont work, so you don't have to invent the wheel again and again by creating their own copy protection solutions. And if you have a danger of beeing blacklisted from Store if your detected of using cracked applications it also might scare some people from using cracked apps. Nobody forces you to use any copy protection libraries in your applications that you develop or you can try to create your own solution. And you can just choose not to use any protection in your commercial appliations (then your applications can be freely copied from device to device, just like on N9). Hopefully that answered your question. re, Jonni From: devel-boun...@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 copy protection In the context of Will you support DRM? No in your FAQ, and having an open, hackable device environment, please do elaborate. I sincerely hope that Jolla has learned from the Aegis experience and general success of copy-protection schemes on other platforms. Best regards, Attila ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla Harbour and Jolla Store
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 before more datails will be available. But feel free to give suggestions what kind of API's you would prefer to have as a developer in Harbour to make your life easier. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Attila Csipa [q...@csipa.in.rs] Sent: Friday, November 08, 2013 2:37 AM To: Mohammed Hassan; Sailfish OS Developers Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store On 07-Nov-13 15:51, Mohammed Hassan wrote: Not quite :) What I'm interested in is what *will* be there (or, rather, what resources will it limit) as opposed to what is NOT going to be there (whether not having Aegis there is good, or bad, depends on what you will have there instead is better or worse than Aegis). As Jonni said: After you enable developer mode, you have _true_ root access to the device and can freely replace system binaries and do what ever you want with your device (you may lose warranty when you enable developer mode). That's good, but what I don't get in that case is... does that coincidentally mean enable developer mode == disable copy protection? Best regards, Attila ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
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: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Andrey Kozhevnikov [coderusin...@gmail.com] Sent: Wednesday, November 06, 2013 1:40 PM To: 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 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 (harbour.jolla.com) or if you have pre-ordered your Jolla phone, you have everything you need to get started. To manage your account details, please visit account.jolla.com. Support for Sailfish and Android™ applications: You can submit both Sailfish and Android™ applications to Jolla Harbour. The submission process is the same. Start with free applications: At launch, the Jolla Harbour and Jolla Store will support only free applications. We are working hard to enable payment solutions and we will keep you posted about these capabilities as they develop. Binary package naming: You will receive naming guidelines when you upload the binary package to Jolla Harbour. You can also find guidelines on versioning at http://semver.org. Preparing your metadata: Jolla Harbour needs to know a few things about your app: - An app icon for the Store (86x86px, png) (Current SDK supports 90x90px images; more details to follow soon) - 1-3 screenshots (540x960px, png or jpg) - An optional Cover image for your Store page (516x252px, png or jpg) Submission process: To submit your application to Jolla Harbour, fill in the metadata for it and upload the binary and required images. After you have submitted your app, Jolla will start Quality Assurance testing. Quality Assurance testing: Jolla will perform QA testing on your applications on real Jolla devices. We will get back to you with feedback on your app within a few days. You will be notified on the QA results via the email address you have registered to your Jolla account. If you encounter any issues, please contact us by email, developer-c...@jolla.com, or report them to the Sailfish developers mailing list at devel at lists.sailfishos.org. Happy hacking! The Jolla Store Team ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Jolla Harbour and Jolla Store
Hi, AFAIK. Currently you can only depend on mer/nemomobile packages, you cannot depend on store packages. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Marcin M. [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 coderusin...@gmail.commailto: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: devel-boun...@lists.sailfishos.orgmailto:devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.orgmailto:devel-boun...@lists.sailfishos.org] on behalf of Jonni Rainisto [jonni.raini...@jolla.commailto: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: devel-boun...@lists.sailfishos.orgmailto:devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.orgmailto:devel-boun...@lists.sailfishos.org] on behalf of Andrey Kozhevnikov [coderusin...@gmail.commailto:coderusin...@gmail.com] Sent: Wednesday, November 06, 2013 1:40 PM To: devel@lists.sailfishos.orgmailto: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 harbour.jolla.comhttp://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 (harbour.jolla.comhttp://harbour.jolla.com) or if you have pre-ordered your Jolla phone, you have everything you need to get started. To manage your account details, please visit account.jolla.comhttp://account.jolla.com. Support for Sailfish and Android™ applications: You can submit both Sailfish and Android™ applications to Jolla Harbour. The submission process is the same. Start with free applications: At launch, the Jolla Harbour and Jolla Store will support only free applications. We are working hard to enable payment solutions and we will keep you posted about these capabilities as they develop. Binary package naming: You will receive naming guidelines when you upload the binary package to Jolla Harbour. You can also find guidelines on versioning at http://semver.org. Preparing your metadata: Jolla Harbour needs to know a few things about your app: - An app icon for the Store (86x86px, png) (Current SDK supports 90x90px images; more details to follow soon) - 1-3 screenshots (540x960px, png or jpg) - An optional Cover image for your Store page (516x252px, png or jpg) Submission process: To submit your application to Jolla Harbour, fill in the metadata for it and upload the binary and required images. After you have submitted your app, Jolla will start Quality Assurance testing. Quality Assurance testing: Jolla will perform QA testing on your applications on real Jolla devices. We will get back to you with feedback on your app within a few days. You will be notified on the QA results via the email address you have registered to your Jolla account. If you encounter any issues, please contact us by email, developer-c...@jolla.commailto:developer-c...@jolla.com, or report them to the Sailfish developers mailing list at devel at lists.sailfishos.orghttp://lists.sailfishos.org. Happy hacking! The Jolla Store Team ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Problems with the Emulator (possible bugs?)
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 minimal example of main, first and second page: ---helloBinding.qml--- import QtQuick 2.0 import Sailfish.Silica 1.0 import pages ApplicationWindow { initialPage: FirstPage { id: first } cover: Qt.resolvedUrl(cover/CoverPage.qml) } ---FirstPage.qml--- import QtQuick 2.0 import Sailfish.Silica 1.0 Page { id: page property alias labelText: exampleLabel.text // To enable PullDownMenu, place our content in a SilicaFlickable SilicaFlickable { anchors.fill: parent // PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView PullDownMenu { MenuItem { text: Show Page 2 onClicked: pageStack.push(Qt.resolvedUrl(SecondPage.qml)) } } // Tell SilicaFlickable the height of its content. contentHeight: column.height // Place our content in a Column. The PageHeader is always placed at the top // of the page, followed by our content. Column { id: column width: page.width spacing: Theme.paddingLarge PageHeader { title: UI Template } Label { id: exampleLabel x: Theme.paddingLarge text: Hello Sailors color: Theme.secondaryHighlightColor font.pixelSize: Theme.fontSizeLarge } } } } ---SecondPage.qml--- import QtQuick 2.0 import Sailfish.Silica 1.0 Page { id: page SilicaListView { id: listView anchors.fill: parent header: PageHeader { title: Nested Page } MouseArea { anchors.fill: parent onClicked: { first.labelText = Foo Bar pageStack.pop() } } } } -- re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of tw_bolek [tw_bo...@op.pl] Sent: Monday, November 04, 2013 11:09 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Problems with the Emulator (possible bugs?) Hello guys, While porting my applications to Sailfish OS, I encountered the following problems with the Emulator. I tried it numerous times and I always end up with the same result: 1) I cannot make onDoubleClick signal work. I have a Rectangle with a MouseArea filling it, and it has an onDoubleClicked signal - there's no reaction to it (tried clicking with various delays, a lot of times very quickly, etc.). If I change it to onClicked then single click works fine. I've also tested it with a simple Button - similarly, onDoubleClicked has no reaction (other than that the button gets highlighted for a short while as with onClicked, but nothing else happens), while with onClicked the button works OK with a single click. 2) If I update something on a page that's currently not visible (i.e. it isn't the topmost page in the stack) then its visible contents don't get refreshed. Its properties themselves DO get updated (which I can verify with console.log output) but when I go back to that page (e.g. via pageStack.pop()) then it still shows old content. If I update these properties once again, while the page IS visible (topmost), then everything gets updated correctly. For example, I have a Text element on a page (and its text is e.g. First). I then switch (via pageStack.push()) to another page and from there I update the first page's (not currently visible) text property (to e.g. Second). Console.log output shows that the text property gets updated, but if I switch back to that page then it still shows the old First text (despite the property itself now being Second). The very same code works properly on Harmattan, Symbian and BB10. The only difference is that on Sailfish OS the element is within a SilicaFlickable. Can someone please check it? I've spent the last two days trying to make the above work, to no avail... Thank you, Bolek ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Sailfish OS on Nokia N950
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:06 PM To: Ahmed Ghattas; devel@lists.sailfishos.org Subject: Re: [SailfishDevel] Sailfish OS on Nokia N950 Hi, Currently you can not. 1. you need to wait for arm rootfs to be released. 2. you need to wait someone to port or port yourself the rootfs to work with N950 3. most likely N950 NFC is not open source (haven't check is nemomobile has working NFC), so you need to reverse engineer how Nokia N9 NFC drivers work and do your own hardware driver implementation for it. 4. Even then you don't know if it would work in real device as detailed hw specs have not been released yet. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Ahmed Ghattas [ahmed...@hotmail.com] Sent: Monday, September 16, 2013 11:59 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Sailfish OS on Nokia N950 hi Devs How i can run Sailfish OS on my Nokia N950 to test my NFC APP with Love Ahmed Ghattas ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] FolderListModel errors
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 releated to qt4 and make sure that qt5-qtdeclarative-import-folderlistmodel is installed in right VM. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of P S [psapps...@gmail.com] Sent: Tuesday, August 20, 2013 8:54 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] FolderListModel errors Hi, I am using the QML FolderListModel in my application. Using zypper, I installed libqtdeclarative4-folderlistmodel but it gave the following error: module Qt.labs.folderlistmodel is not installed Since the new SDK offers some Qt5 and QtQuick2 support, I then also installed qt5-qtdeclarative-import-folderlistmodel on the emulator, but I keep getting the same error. Any suggestions? Regards, Peter ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] alpha2 sdk: shared source directory not working ?
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: [SailfishDevel] alpha2 sdk: shared source directory not working ? I just removed alpha1 and installed alpha2. I noticed the new SDK installer now asks if you want to use a source directory outside your home directory. I entered the development directory of my data disk. However when I try to build the example application generated by the Sailfish project wizard, I still get the old error: Project is outside of shared home '/Users/winfried' and shared src ''. Did I miss something or is this feature not finished yet ? I'm using OS X 10.8.4. thanks in advance, Winfried ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] under which user do apps run
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 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] under which user do apps run Hi, Trying to find out under which user my app runs. whoami from within the app returns . and ~ has no content. Thanks. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] under which user do apps run
http://qt-project.org/doc/qt-5.0/qtcore/qdir.html#homePath You should replace ~ with homePath() as in some operating systems ~ doesn't mean anything. QDir::homePath()+/checklist From: Wim de Vries [wsvr...@xs4all.nl] Sent: Sunday, August 11, 2013 11:29 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 output (I was using QProcess with no results). Anyway, QDir dp(~/checklists) does not return anything, whereas QDir dp(/home/nemo/checklists) works ok. That's why I got confused. But the ~ not being recognized may be a Qt issue. 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 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] under which user do apps run Hi, Trying to find out under which user my app runs. whoami from within the app returns . and ~ has no content. Thanks. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Include Python.h: BuildRequires
You are trying to pkgconfig stuff that doesn't have corresponding .pc file. In mersdk vm, if you su -l mersdk and do sb2 ls /usr/lib/pkgconfig you can see available pkgconfig packages. If there is no pkgconfig package avail then you most likely just need to BuildRequire the -devel package that you need. So in reality you want to do something like: BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(qdeclarative5-boostable) BuildRequires: telepathy-qt5-devel BuildRequires: libcontacts-qt5-devel BuildRequires: 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 installed to toolchain while building. BuildRequires: pkgconfig(python-2.7) In my case the Build fails with an explicit error, rather than automatically installing the stated packages. As an example, I am playing around with a project that has the following in the .spec file BuildRequires: pkgconfig(QtCore) = 4.7.0 BuildRequires: pkgconfig(QtDeclarative) BuildRequires: pkgconfig(QtContacts) BuildRequires: pkgconfig(qdeclarative-boostable) BuildRequires: pkgconfig(TelepathyQt5) BuildRequires: desktop-file-utils When I build I get the following in the compile output ' () pkgconfig(TelepathyQt5)' not found in package names. Trying capabilities. 'telepathy-qt5-devel' providing 'pkgconfig(TelepathyQt5)' is already installed. () 'pkgconfig(QtContacts)' not found in package names. Trying capabilities. 'pkgconfig(qdeclarative-boostable)' not found in package names. Trying capabilities. error: Failed build dependencies: pkgconfig(QtContacts) is needed by qmlmessages-0.1.4-1.i586 pkgconfig(qdeclarative-boostable) is needed by qmlmessages-0.1.4-1.i586 ' Have I missed an option that allows automatic install? If an automatic install is not possible, is there a clever way to identify the correct package(s) and install using the SDK Control Center? E.g. If I search for contact in the Control Center then I get a long list of possible packages with contact in the name, and it is not easy (for me) to identify the correct one without a bit of trial and error. thanks Crhis ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Unsubscribing - details
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: Saturday, April 20, 2013 11:22 PM To: Oluwatona Campbell; Kshitij Awadhiya; j...@jujudeshighlands.com Cc: devel@lists.sailfishos.org Subject: [SailfishDevel] Unsubscribing - details No problem Please send an email to devel-requ...@lists.sailfishos.org In the message itself (not the subject) simply put the work unsubscribe The list administrator can do this for you on monday if there are any difficulties. I'll also see if we can get the footer to include this information too. David ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] How to write a game on Sailfish OS?
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 choice. One pretty nice tutorial about QML with C++ is avail in here http://quitcoding.com/download/Qt_Quick_Game_Programming_1_0.pdf br, Jonni On 04/17/2013 11:10 AM, thuai wrote: I want to write a simple game run with Sailfish OS. What language should be used? I don't want to use qml and javascript. Can c++ do this mession? thks for reply! ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] no c++ in Sailfish?
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 course depending what kind of application you are doing (you didn't mention if you application if fullscreen opengles2 game). If you have existing C++ project, then its just enough for you to open the existing .pro file with creator, you don't have to use the wizard to make a new project. Drawback is that look and feel wont be consistent with other applications if you don't use the QML Sailfish components for the UI. re, Jonni On 04/14/2013 11:48 PM, Wim de Vries wrote: Hi, My project is C++. It looks like Sailfish is only Qt Quick (new project only allows this option). Is C++ a no-go for sailfish? If not, how do I proceed. Thanks. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] QML support of Multitouch
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 does not work, since currently SDK does not report any QTouchEvents, ie. SDK only reports mouse events. But if at some point there is armhf rootfs released, then it might be useful to you. And I only tested portrait mode, one might or might not need to do some x y tweaking for mapping raw events other QML orientations. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Lucien XU [sfietkonstan...@free.fr] Sent: Wednesday, March 13, 2013 10:18 PM To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] QML support of Multitouch Hello Seppo, Instead of subclassing QmlApplicationViewer, did you ever tried to just subclass a QDeclarativeView, and add the given code from your link to that subclass ? It should work. Cheers, Lucien Le mercredi 6 mars 2013 10:48:15 Seppo Tiainen a écrit : What I have been missing most in QML is multitouch support. Only Qt 5.0 has QML MultiPointTouchArea but Sailfish is using Qt 4.8. In Harmattan, I was able to read multiple touch points by Lauri Jääskeläinen's QmlMultiTouch code ( http://www.developer.nokia.com/Community/Blogs/blog/lauri-jaaskelas-forum-no kia-blog/2011/02/03/raw-multitouch-pointer-events-in-qml) where a new class (TouchApplicationViewer) is inherited from QmlApplicationViewer, and viewportEvent(QEvent*) method is reimplemented. The code also implements a class MultiTouch which exposes a list of touch points to QML. Now that I'm planning to port my app from Harmattan to Sailfish I'm having problems dealing with view and installing multitouch in main.cpp of Sailfish/Silica. Any ideas how to do that? Or, would it be possible to have a TouchArea library or plugin for Sailfish QtCreator (next update)? I think being able to easily deal with multiple touch points in QML is one of the key features needed while developing interesting Qt apps for modern smartphones. A sample code for main.cpp or Sailfish QtCreator lib upgrade/plugin would be great! - tiptyper ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list