Re: [SailfishDevel] Linux desktop software on Sailfish?

2018-03-06 Thread Marcin Mielniczuk
IIRC there were some community Fremantle gtk apps, some others using libhildon. 
Tuner was one of them.

On March 6, 2018 11:47:45 PM GMT+01:00, "Pali Rohár"  
wrote:
>On Tuesday 06 March 2018 23:28:43 tuntematon wrote:
>> 2018-03-06 22:43 GMT+01:00 Dietmar Schwertberger
>:
>> > On Maemo, the standard Qt widgets were perfectly integrated. With
>Sailfish
>> 
>> Wasn't Maemo GTK based? Qt came with Harmattan/Meego.
>
>Maemo 5 on Nokia N900 comes with both Gtk2 and Qt4 libraries. Just
>default pre-installed applications are written in Gtk2. Others from
>Maemo Extras are written in Qt4 too.
>
>-- 
>Pali Rohár
>pali.ro...@gmail.com

-- 
Sent from my mobile. Please excuse the typos.___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Keep an application running without keeping the window open

2018-02-18 Thread Marcin Mielniczuk
Do I understand correctly that the dbus daemons run as usual systemd
--user daemons and simply communicate over dbus?


On 18.02.2018 22:59, Kimmo Lindholm wrote:
>
> One small daemon you can take a look is my call fhasher
> https://github.com/kimmoli/callflasher
>
> for complex one, take a look at tohkbd2 . it has 2 daemons, system and
> user, and ui app that all communicate together over dbus
>
>  
>
> -kimmo
>
>  
>
> *Lähettäjä:*Devel [mailto:devel-boun...@lists.sailfishos.org]
> *Puolesta *Marcin Mielniczuk
> *Lähetetty:* sunnuntai 18. helmikuuta 2018 21.29
> *Vastaanottaja:* Adam Pigg <a...@piggz.co.uk>; Sailfish OS Developers
> <devel@lists.sailfishos.org>
> *Aihe:* Re: [SailfishDevel] Keep an application running without
> keeping the window open
>
>  
>
> Is there any minimal example I could take a look at? I've never done
> anything more with dbus than dbus-send.
>
> On 17.02.2018 22:06, Adam Pigg wrote:
>
> Hi
>
> You could create a dbus service for the application to talk to. 
> The gui application can launch the dbus service if it isnt
> running, and connect next time it is opened, leaving it running in
> the background.
>
> Adam
>
>  
>
> On Sat, 17 Feb 2018 at 20:58 rinigus <rinigus@gmail.com
> <mailto:rinigus@gmail.com>> wrote:
>
> Hi,
>
>  
>
> from the point of view of portability, having a split GUI and
> backend should be nicely portable. Even focusing on systemd
> would cover large portion of Linux distributions, but you
> don't have to include any systemd dependencies as such. On
> desktop, it would allow you to move the backend into dedicated
> hardware, if you wish. Also, it would survive X11 crashes as a
> bonus. So, if you plan to run it 24x7, service running on the
> background is a good way of doing it.
>
>  
>
> But maybe someone has better idea.
>
>  
>
> Cheers,
>
>  
>
> Rinigus
>
>  
>
> On Sat, Feb 17, 2018 at 9:16 PM, Marcin Mielniczuk
> <marmistrz...@gmail.com <mailto:marmistrz...@gmail.com>> wrote:
>
> I'm not sure if that's a good choice when trying to
> achieve portability. Usually on desktop you'd rather have
> a monolithic application with just minimize to tray.
>
> Any other options?
>
>  
>
> On 05.02.2018 10:33, rinigus wrote:
>
> Hi,
>
>  
>
> the obvious solution is to run service that is 24/7 on
> and separate client for GUI. That's what stock
> messaging is doing. I would recommend it and use some
> simple messaging API for communicating between them.
> There are probably many APIs to choose that will allow
> you to set it up simply.
>
>  
>
> If you can withstand short shutdown of the service
> then you can combine it into the same application. It
> would require that application will start in GUI or
> server mode depending on command line option. If
> started in GUI mode, you would have to 
>
>  
>
> * shut down service via systemd
>
> * establish new connections
>
>  
>
> and on GUI exit you would have to 
>
>  
>
> * drop all connections
>
> * start service via systemd
>
>  
>
> The latter is the way OSM Scout Server works with the
> adjustment that its using systemd sockets to keep it
> switched off when user is not accessing it. Note that
> it was done for historical reasons (signaling between
> parts was implemented via Qt) and since its mostly
> used as a service anyway (users don't need to access
> GUI for weeks).
>
>  
>
> I would still recommend splitting service/GUI parts
> and use some messaging protocol in between. Myself I
> would have used zeromq, but you could choose probably
> many others.
>
>  
>
> Cheers,
>
>  
>
> Rinigus
>
>  
>
> O

Re: [SailfishDevel] Keep an application running without keeping the window open

2018-02-18 Thread Marcin Mielniczuk
Is there any minimal example I could take a look at? I've never done
anything more with dbus than dbus-send.

On 17.02.2018 22:06, Adam Pigg wrote:
> Hi
>
> You could create a dbus service for the application to talk to.  The
> gui application can launch the dbus service if it isnt running, and
> connect next time it is opened, leaving it running in the background.
>
> Adam
>
> On Sat, 17 Feb 2018 at 20:58 rinigus <rinigus@gmail.com
> <mailto:rinigus@gmail.com>> wrote:
>
> Hi,
>
> from the point of view of portability, having a split GUI and
> backend should be nicely portable. Even focusing on systemd would
> cover large portion of Linux distributions, but you don't have to
> include any systemd dependencies as such. On desktop, it would
> allow you to move the backend into dedicated hardware, if you
> wish. Also, it would survive X11 crashes as a bonus. So, if you
> plan to run it 24x7, service running on the background is a good
> way of doing it.
>
> But maybe someone has better idea.
>
> Cheers,
>
> Rinigus
>
> On Sat, Feb 17, 2018 at 9:16 PM, Marcin Mielniczuk
> <marmistrz...@gmail.com <mailto:marmistrz...@gmail.com>> wrote:
>
> I'm not sure if that's a good choice when trying to achieve
> portability. Usually on desktop you'd rather have a monolithic
> application with just minimize to tray.
>
> Any other options?
>
>
> On 05.02.2018 10:33, rinigus wrote:
>> Hi,
>>
>> the obvious solution is to run service that is 24/7 on and
>> separate client for GUI. That's what stock messaging is
>> doing. I would recommend it and use some simple messaging API
>> for communicating between them. There are probably many APIs
>> to choose that will allow you to set it up simply.
>>
>> If you can withstand short shutdown of the service then you
>> can combine it into the same application. It would require
>> that application will start in GUI or server mode depending
>> on command line option. If started in GUI mode, you would
>> have to 
>>
>> * shut down service via systemd
>> * establish new connections
>>
>> and on GUI exit you would have to 
>>
>> * drop all connections
>> * start service via systemd
>>
>> The latter is the way OSM Scout Server works with the
>> adjustment that its using systemd sockets to keep it switched
>> off when user is not accessing it. Note that it was done for
>> historical reasons (signaling between parts was implemented
>> via Qt) and since its mostly used as a service anyway (users
>> don't need to access GUI for weeks).
>>
>> I would still recommend splitting service/GUI parts and use
>> some messaging protocol in between. Myself I would have used
>> zeromq, but you could choose probably many others.
>>
>> Cheers,
>>
>> Rinigus
>>
>> On Mon, Feb 5, 2018 at 11:17 AM, Marcin Mielniczuk
>> <marmistrz...@gmail.com <mailto:marmistrz...@gmail.com>> wrote:
>>
>> Hi,
>>
>> When creating SFOS applications which should run 24/7
>> (e.g. IMs) we
>> would like to achieve similar behavior as the stock
>> applications, e.g.
>> the stock e-mail client: the sync (*) runs in the
>> background, even
>> though the application is closed. A window staying open
>> just to make
>> sure the sync goes on clutters the open app view and
>> makes it more
>> difficult to manage the open applications.
>>
>> On a desktop DE one would simply minimize the application
>> to tray.
>> Alternatively, one could create a daemon which the client
>> app would
>> communicate with using UNIX sockets, but it greatly
>> increases the
>> complexity of the application and slows down the development.
>>
>> What's the easiest way to keep the sync process in the
>> background
>> without keeping the window open?
>>
>> Regards,
>> Marcin
>>
>> (*) when speaking sync, I mean any kind of waiting for a
>> remote event,
&g

Re: [SailfishDevel] Keep an application running without keeping the window open

2018-02-17 Thread Marcin Mielniczuk
I'm not sure if that's a good choice when trying to achieve portability.
Usually on desktop you'd rather have a monolithic application with just
minimize to tray.

Any other options?


On 05.02.2018 10:33, rinigus wrote:
> Hi,
>
> the obvious solution is to run service that is 24/7 on and separate
> client for GUI. That's what stock messaging is doing. I would
> recommend it and use some simple messaging API for communicating
> between them. There are probably many APIs to choose that will allow
> you to set it up simply.
>
> If you can withstand short shutdown of the service then you can
> combine it into the same application. It would require that
> application will start in GUI or server mode depending on command line
> option. If started in GUI mode, you would have to 
>
> * shut down service via systemd
> * establish new connections
>
> and on GUI exit you would have to 
>
> * drop all connections
> * start service via systemd
>
> The latter is the way OSM Scout Server works with the adjustment that
> its using systemd sockets to keep it switched off when user is not
> accessing it. Note that it was done for historical reasons (signaling
> between parts was implemented via Qt) and since its mostly used as a
> service anyway (users don't need to access GUI for weeks).
>
> I would still recommend splitting service/GUI parts and use some
> messaging protocol in between. Myself I would have used zeromq, but
> you could choose probably many others.
>
> Cheers,
>
> Rinigus
>
> On Mon, Feb 5, 2018 at 11:17 AM, Marcin Mielniczuk
> <marmistrz...@gmail.com <mailto:marmistrz...@gmail.com>> wrote:
>
> Hi,
>
> When creating SFOS applications which should run 24/7 (e.g. IMs) we
> would like to achieve similar behavior as the stock applications, e.g.
> the stock e-mail client: the sync (*) runs in the background, even
> though the application is closed. A window staying open just to make
> sure the sync goes on clutters the open app view and makes it more
> difficult to manage the open applications.
>
> On a desktop DE one would simply minimize the application to tray.
> Alternatively, one could create a daemon which the client app would
> communicate with using UNIX sockets, but it greatly increases the
> complexity of the application and slows down the development.
>
> What's the easiest way to keep the sync process in the background
> without keeping the window open?
>
> Regards,
> Marcin
>
> (*) when speaking sync, I mean any kind of waiting for a remote event,
> no matter if it's done by idle TCP (which is good) or HTTP polling
> (which is not good)
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
> <mailto: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

[SailfishDevel] Keep an application running without keeping the window open

2018-02-05 Thread Marcin Mielniczuk
Hi,

When creating SFOS applications which should run 24/7 (e.g. IMs) we
would like to achieve similar behavior as the stock applications, e.g.
the stock e-mail client: the sync (*) runs in the background, even
though the application is closed. A window staying open just to make
sure the sync goes on clutters the open app view and makes it more
difficult to manage the open applications.

On a desktop DE one would simply minimize the application to tray.
Alternatively, one could create a daemon which the client app would
communicate with using UNIX sockets, but it greatly increases the
complexity of the application and slows down the development.

What's the easiest way to keep the sync process in the background
without keeping the window open?

Regards,
Marcin

(*) when speaking sync, I mean any kind of waiting for a remote event,
no matter if it's done by idle TCP (which is good) or HTTP polling
(which is not good)


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] [OBS] What should I do if rpmlint just crashes?

2018-01-14 Thread Marcin Mielniczuk
Hi,

While trying to build newer boost on the OBS, I encountered the
following problem:

[ 1672s] RPMLINT report:
[ 1672s] ===
[ 1742s] Traceback (most recent call last):
[ 1742s]   File "rpmlint.py", line 371, in 
[ 1742s]   File "rpmlint.py", line 160, in main
[ 1742s]   File "rpmlint.py", line 217, in runChecks
[ 1742s]   File "DuplicatesCheck.py", line 63, in check
[ 1742s] OSError: [Errno 2] No such file or directory:
'/tmp/rpmlint.boost-devel-1.60.0+obs.20180113135825.ee8eee4-10.10.1.jolla.armv7hl.rpm.995lQw//usr/include/boost/mpl/aux_/preprocessed/bcc_pre590/placeholders.hpp'
[ 1742s] 22 packages and 0 specfiles checked; 0 errors, 45 warnings.

which makes the whole build fail.

What should I do with it? A search yields almost nothing (the only
result doesn't seem related)

I'm using a _service to fetch the sources:
https://build.merproject.org/package/view_file/home:marmistrz:swiften/boost-opt/_service?expand=1
(for future readers: revision 10)

Regards,
Marcin


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Increase buildspeed of the Application SDK

2018-01-08 Thread Marcin Mielniczuk
... I noticed that the problem I have described doesn't occur when using
make (i.e. affects scons, doesn't affect make)


On 08.01.2018 10:45, Marcin Mielniczuk wrote:
>
> Well, I added a second core to the MerSDK VM and then executed:
>
> sb2 -t SailfishOS-2.1.3.7-armv7hl /bin/bash ./scons Swiften -j 2
>
> Still, all processes spawned by Scratchbox seem assigned to the first
> CPU of the VM and the second one, sits mostly idle, as shown in the
> screenshot.
>
> Has anyone of you encountered something like this?
>
>
> On 01.01.2018 19:49, Tone Kastlunger wrote:
>> It'd be amazing to be able to specify a default in QtCreator.
>>
>> On Sat, Dec 23, 2017 at 11:34 PM, Sander van Grieken
>> <sander@outright.solutions <mailto:sander@outright.solutions>> wrote:
>>
>> On woensdag 20 december 2017 04:38:02 CET Dylan Van Assche via
>> Devel wrote:
>> > Hi,
>> >
>> > Is it possible to increase the build speed of C++ apps in the
>> Application SDK?
>> > I can asign more CPUs and RAM in the VM manager but it seems
>> that the Application SDK builds applications with the -j1 MAKE
>> flag (max 1 job).
>>
>> In QtCreator you can specify make arguments (e.g. '-j 4') in the
>> Build Steps of the project's Build & Run config.
>>
>> grtz,
>> Sander
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to
>> devel-unsubscr...@lists.sailfishos.org
>> <mailto: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] Where did devel-su come from and what's its purpose?

2018-01-02 Thread Marcin Mielniczuk
Hi Bernd,

On 13.05.2014 16:13, Bernd Wachter wrote:
> Mehdi El Gueddari  writes:
>
>> I'm been googling long and hard but haven't been able to find much
>> information about the 'devel-su' command, beyond the fact that it's the
>> command to use on Sailfish to switch to the root user. I also couldn't find
>> the source code for it anywhere.
> I'm the author, and the source is (currently) not open. It is on the
> list of stuff I'd like to see opened up when I have time for that,
> though. It's one of those small utilities you can easily write during
> your lunch break, if you have a basic understanding of UNIX concepts.
It has been over 3 years since this post was written. Has anything moved
forward with respect to open sourcing this utility?
>
>> If there is someone with more insider knowledge here, I'd love to hear
>> about where this command came from and how it differs from 'su'.
>>
>> The first mentions of 'devel-su' I've been able to find were from 2011 in
>> relation to MeeGo. I couldn't find any information about why this command
>> was created for MeeGo though. It may have been related to MeeGo's security
>> platform Aegis (part of the Mobile Simplified Security Framework it seems)
>> but there's precious little information about Aegis or MSSF out there.
>>
>> Back in the Meego days, 'devel-su' would let you switch to, quite
>> literally, a developer super user account, which had more privileges than a
>> normal user but wasn't quite root (or at least it seems that way from the
>> few user complaints I could find).
> This devel-su did indeed have ties to aegis, and it let you do
> everything not explicitely prevented by aegis settings. Aegis blocked
> several useful things, which caused the annoyance.
>
> The Sailfish devel-su only shares the name -- it was chosen to have it
> easily discoverable for developers coming from MeeGo/Harmattan, but was
> written from scratch. It's available as su-devel as well to make it
> better discoverable for people without MeeGo background.
>
>> Sailfish is very different however. There's no Aegis there. The 'devel-su'
>> command lets you switch to the real root user and gives you full root
>> access to your device. In fact, once you're root, you can just reset the
>> root user password (which appears to not be set or be set to a random value
>> by default) and then just use the 'su' command normally instead of
>> 'devel-su' (
>> https://together.jolla.com/question/30565/howto-using-su-instead-of-devel-su/
>> ).
>>
>> So why 'devel-su' then?
>>
>> AFAICS, one difference between 'su' and 'devel-su' is that 'devel-su'
>> checks the password set in the device's Developer Mode settings instead of
>> using the normal root password. So you can disable root login via
>> 'devel-su' or change the 'devel-su' password there.
> To be more precise, the settings page sets the password for the nemo user,
> and devel-su authenticates using the users password, instead of the root
> password, as used by su. Reason for that setup is just to be as paranoid
> as possible when it comes to access of your device, which includes a
> disabled root user. You're free to do whatever you want with your
> device, though.
>
> The other question which might come up would be "why not sudo": Back
> when we were building the phone sudo did not work very well with
> systemd. Additionally it's pretty complex, easy to break, and had its
> share of exploits. devel-su is about 150 lines, including boilerplate,
> so quite easy to audit.
> Bernd
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Regards, Marcin
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] booster loading wrong libstdc++

2017-09-11 Thread Marcin Mielniczuk
I think it would be wise to allow blacklisting a single library from
being boosted or allowing multiple library instances in booster.


On 11.09.2017 10:56, rinigus wrote:
> Thank you very much - worked as requested!
>
> Rinigus
>
> On Mon, Sep 11, 2017 at 11:26 AM, Andrew Penkrat  > wrote:
>
> Hi Rinigus,
>
> It's possible to disable the booster with
> X-Nemo-Application-Type=no-invoker
> line in your .desktop file.
>
> Hope this helps,
> Andrew
>
> On Mon, 11 Sep 2017 at 10:48 rinigus  > wrote:
>
> Hi,
>
> I am using gcc-6.4.0
> 
> (https://build.merproject.org/package/show/home:rinigus:toolbox/opt-gcc
> 
> )
> for porting/developing C++14 application. Since gcc is
> compiled with the compatibility switches, it all works quite
> nicely except that the application does not start from the
> application grid - I have to launch it from the terminal.
> Namely, since I use gcc-6.4.0 provided libstdc++, my
> application has this library under /usr/shared/appname/lib
> directory. Unfortunately, when I launch the app in the grid,
> it gets "boosted" with the booster that uses
> /usr/lib/stdc++.so.6 library. From emulating this launch in
> terminal (wisdom of @coderus TJC):
>
> xdg-open /usr/share/applications/some-application.desktop
>
> Failed to invoke: Booster: Loading invoked application failed:
> '/usr/lib/stdc++.so.6: version `CXXABI_1.3.8` not found
> (required by ...)'
>
> Hence the question: how can I disable the booster in xdg-open
> launch of my application? Or any other workaround?
>
> Best wishes,
>
> Rinigus
> ___
> 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] (Unit) tests for QML apps

2017-07-28 Thread Marcin Mielniczuk
+1, I've never figured it out either. I asked a similar question a long time 
ago but never received an answer.

On July 27, 2017 1:08:26 AM GMT+02:00, Trolli Schmittlauch 
 wrote:
>Hi,
>
>I'm currently working on a QML only app for Sailfish and want to write
>some unit tests for it. For that I'm using QtTest quick component.
>Are there some other devs doing UnitTests on their QML apps? Are you
>using QtTest, too?
>
>One important question there is how to structure the project wit its
>tests? I'm currently using a project structure recommended by Artem
>Marchenko [1] which is the best I could find. It puts the tests into an
>own subpackage so they're not distributed in the release builds. But
>this approach still has its problems: You have to change import paths
>for autocompletion in QtCreator to work, but have to change them back
>again for a build to succeed. Furthermore, this approach ist still
>quite complex.
>So which project structure and approach for running tests are you
>using?
>
>The 3rd point is just pro-forma as I expect there is no comfortable
>solution for that problem: One feature I'm developing needs a database
>migration. I want to test this migration by providing a pre-migration
>test db, executing the db and checking the result. But
>QtQuick.LocalStorage doesn't allow opening files but only databases
>with a certain name stored in some offlineStoragePath. This could be
>theoretically changed in the C++ part via QtQMLEngine, but thats hardly
>doable if you run your tests using the QUICK_TEST_MAIN() macro.
>So any ideas regarding how to best test a db migration?
>
>Best regards
>
>schmittlauch
>
>[1] https://github.com/amarchen/helloworld-pro-sailfish

-- 
Sent from my mobile. Please excuse my brevity.___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] SQLite linking

2017-03-04 Thread Marcin Mielniczuk
You can always use OpenRepos...

On March 4, 2017 8:50:37 AM GMT+01:00, rinigus  wrote:
>Hi,
>
>one month + 10 days later - no response for PR nor SQLite linking from
>Harbour / Jolla devs. Already had to ship few versions with SQLite
>bundled
>with application as well. I'd say its rather poor response times
>already
>now (with the response time not reached yet).
>
>Rinigus
>
>
>On Wed, Jan 18, 2017 at 4:30 PM, rinigus  wrote:
>
>> Slava,
>>
>> thank you for this constructive suggestion. I submitted PR
>> https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/pull/86 to
>add
>> sqlite into the list of allowed libraries. Hopefully, it will be
>accepted.
>>
>> Best wishes,
>>
>> Rinigus
>>
>> On Wed, Jan 18, 2017 at 3:29 PM, Slava Monich
>
>> wrote:
>>
>>> I believe rpm automatically detects the dependencies, even if they
>are
>>> not in the spec. Removing the dependency from the spec might not
>help.
>>> There may be some hackish ways of removing a dependency from the rpm
>>> headers but I don't think that it would be a good idea. Better to
>spend
>>> time on hacking something more useful than that.
>>>
>>> Another approach is to load the library with dlopen, e.g.
>>>
>>>
>https://github.com/monich/harbour-books/blob/master/app/stubs/libmagic.c
>>>
>>> This allows you to get around the harbour limitations and yet in
>every
>>> other respect it's as good as linking with the system library. Of
>course by
>>> doing so you assume the risk of using the unsupported api.
>Obviously, this
>>> kind of trick should only be done to very stable libraries that are
>>> extremely unlikely to disappear from the system and have a proven
>track
>>> record of evolving in a backward compatible manner.
>>>
>>> I think the best solution is to add sqlite3 to
>allowed_libraries.conf and
>>> submit a pull request:
>>>
>>> https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/blo
>>> b/master/allowed_libraries.conf
>>>
>>> Cheers,
>>>
>>> -Slava
>>>
>>>
 Is the automatic checker not allowing it through with sqlite3 as a
 requirement? Are you sure that you used the packagename used on
>jolla
 systems for the requirement?

>>>
>>> During deployment as RPM, the specific error is
>>>
>>>  Requires
>>>
>>> 
>>>
>>> ERROR [libsqlite3.so.0] Cannot require shared library:
>'libsqlite3.so.0'
>>>
>>> INFO [harbour-osmscout-server] Please see our FAQ here:
>>>
>https://harbour.jolla.com/faq#2.6.0
>>> how to use '__provides_exclude_from' and '__requires_exclude' .spec
>file to
>>> avoid that
>>>
>>> FAILED
>>>
>>>
>>> earlier versions of this app were published in the store without any
>>> issues. Its a part of the app evolution to require sqlite3 for its
>>> function, at least for a time being.
>>>
>>> I agree that static linking of sqlite3 is not necessary and can be
>>> considered as a bloat. Hence my question :)
>>>
>>> rinigus
>>>
>>>
>>> ___
>>> 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-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>>

-- 
Sent from my mobile. Please excuse my brevity.___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Context menu of a grid view

2016-11-22 Thread Marcin Mielniczuk
You mean jolla-gallery or the Components gallery?

this is what pkcon search name gallery returned.

Marcin

On 21.11.2016 18:52, Andrey Kozhevnikov wrote:
> Check how sailfish-gallery works. It have additional propery in
> delegates altering y-position for elements on next linex after
> activated one.
>
>
> -- Исходное сообщение ------
> От: "Marcin Mielniczuk" <marmistrz...@gmail.com>
> Кому: "Sailfish OS Developers" <devel@lists.sailfishos.org>
> Отправлено: 21.11.2016 20:49:46
> Тема: [SailfishDevel] Context menu of a grid view
>
>> Hi,
>>
>> In my app I show the user a grid view. It's elements should be
>> interactive and its state can be modified.
>>
>> I'd like to use a context menu for this. My current approach is
>>
>> SilicaGridView {
>> id: diceView
>>
>> Layout.preferredWidth: parent.width
>> Layout.fillHeight: true
>>
>> model: myModel
>>
>> cellWidth: width / gridDimension
>> cellHeight: height / gridDimension
>>
>> delegate: BackgroundItem {
>>
>> id: bgItem
>> width: diceView.cellWidth
>> height: diceView.cellHeight
>>
>> /* contents */
>>
>> ContextMenu {
>> id: contextMenu
>> parent: bgItem
>> anchors {
>> left: bgItem.left
>> right: bgItem.right
>> bottom: bgItem.bottom
>> }
>>
>> RemorseItem {
>> id: remorse
>> wrapMode: Text.WordWrap
>> horizontalAlignment: Text.AlignHCenter
>> }
>>
>> MenuItem {
>> text: qsTr("foo")
>> }
>>
>> MenuItem {
>> text: qsTr("bar")
>> }
>> }
>>
>> onPressAndHold: contextMenu.show(this)
>> }
>>
>> The problem is that with two elements, the context menu that overlaps
>> the delegate content, which makes the MenuItems illegible.
>>
>> What is the recommended UX solution for this? Seems that ContextMenu
>> works out-of-the-box for SilicaListViews but not for SilicaGridViews.
>>
>> -- 
>> Marcin
>>
>>
>> ___
>> 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] Updating gcc?

2016-11-05 Thread Marcin Mielniczuk
+1
--
Marcin

On November 5, 2016 4:44:42 PM GMT+01:00, "Roberto Colistete Jr." 
<roberto.colist...@gmail.com> wrote:
> Hi,
>
>The Mer/Sailfish community wants to run Fortran compiler on device 
>(like gcc/g++), which is also a dependency for packages R, NumPy,
>SciPy, 
>etc. See the Talk Maemo.org topic "Fortran for Sailfish OS ?" :
>http://talk.maemo.org/showthread.php?t=93925
>
> So if possible, please make gcc-fortran package with the new 
>gcc/g++ version.
>
> Best regards,
>
> Roberto
>
>
>Em 05-11-2016 07:09, Andrew Branson escreveu:
>> It's funny you should ask - we're actually hacking around there right
>
>> now while getting aarch64 building. The choice is a tricky one though
>
>> - the more you upgrade something like gcc, the more potential
>problems 
>> can be caused in every single package containing C or C++ source.
>>
>> Thanks for the suggestion though, I'll have a play with newer
>versions 
>> during this process to see the impact.
>>
>> Cheers,
>>
>> Andrew
>>
>> On 04/11/16 22:08, Marcin Mielniczuk wrote:
>>> Current gcc in Mer is 4.8, which is 2 years old. Current releases
>(5.4,
>>> 6.1) have full support for C++14, 4.8's support for C++11 is only
>>> experimental.
>>>
>>> C++11 brought many important changes such as constexprs or simply
>really
>>> useful ones (auto types). It'd be great to have them in Mer.
>>>
>>> Are there any plans for updating gcc in Mer?
>
>___
>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] Documentation for mlite5

2016-11-05 Thread Marcin Mielniczuk
Thanks!

Marcin

On 05.11.2016 11:15, Kimmo Lindholm wrote:
>
> Seems it is fixed in sailfishapp.prf
>
> Earlier, adding PKGCONFIG did break things. Now those are already in,
> so just adding PKGCONFIG += mlite5 is enough.
>
>  
>
> ref: https://sailfishos.org/develop/sdk-overview/develop-packaging-apps/
>
>  
>
> -kimmo
>
>  
>
>  
>
> *From:*Devel [mailto:devel-boun...@lists.sailfishos.org] *On Behalf Of
> *Marcin Mielniczuk
> *Sent:* 5. marraskuuta 2016 11:30
> *To:* Sailfish OS Developers
> *Subject:* Re: [SailfishDevel] Documentation for mlite5
>
>  
>
> Why do I need CONFIG += link_pkgconfig? It seemed to work with only
> PKGCONFIG += mlite5, but maybe I just didn't find the pitfall.
>
>  
>
> And I didn't have PKGCONFIG += sailfishapp at all in my pro, just
> CONFIG += sailfishapp
>
> Marcin
>
> On 05.11.2016 08:07, Kimmo Lindholm wrote:
>
> Yes. +1 for docs.
>
> PKGCONFIG is a good way doing ir.
>
> In .pro
>
> CONFIG += link_pkgconfig sailfishapp
> PKGCONFIG += mlite5 sailfishapp
>
> in .spec
>
> BuildRequires:pkgconfig(mlite5)
>
>  
>
> -kimmo
>
> --------
>
> *Lähettäjä:*Devel <devel-boun...@lists.sailfishos.org>
> <mailto:devel-boun...@lists.sailfishos.org> käyttäjän Marcin
> Mielniczuk <marmistrz...@gmail.com>
> <mailto:marmistrz...@gmail.com> puolesta
> *Lähetetty:* 4. marraskuuta 2016 22:29:02
> *Vastaanottaja:* Sailfish OS Developers
> *Aihe:* [SailfishDevel] Documentation for mlite5
>
>  
>
> Is there any online documentation regarding mlite5? I'm not really
> sure
> how I should use it in my project, whether I should include
> 
> or . What is the preferred way of achieving decent
> linking? I found some examples using PKGCONFIG - is it the good way?
>
> There should be at least a minimal example in the README, the rest can
> be derived from the doxygen comments. But, since the doxygen comments
> are already there, why not put the docs online?
>
> -- 
> Marcin
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
> <mailto:devel-unsubscr...@lists.sailfishos.org>
>
>
>
>
> ___
>
> SailfishOS.org Devel mailing list
>
> To unsubscribe, please send a mail to 
> devel-unsubscr...@lists.sailfishos.org
> <mailto: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] Documentation for mlite5

2016-11-05 Thread Marcin Mielniczuk
Why do I need CONFIG += link_pkgconfig? It seemed to work with only
PKGCONFIG += mlite5, but maybe I just didn't find the pitfall.


And I didn't have PKGCONFIG += sailfishapp at all in my pro, just CONFIG
+= sailfishapp

Marcin

On 05.11.2016 08:07, Kimmo Lindholm wrote:
> Yes. +1 for docs.
>
> PKGCONFIG is a good way doing ir.
>
> In .pro
>
> CONFIG += link_pkgconfig sailfishapp
> PKGCONFIG += mlite5 sailfishapp
>
> in .spec
>
> BuildRequires: pkgconfig(mlite5)
>
> -kimmo
>
> 
> *Lähettäjä:* Devel <devel-boun...@lists.sailfishos.org> käyttäjän
> Marcin Mielniczuk <marmistrz...@gmail.com> puolesta
> *Lähetetty:* 4. marraskuuta 2016 22:29:02
> *Vastaanottaja:* Sailfish OS Developers
> *Aihe:* [SailfishDevel] Documentation for mlite5
>  
> Is there any online documentation regarding mlite5? I'm not really sure
> how I should use it in my project, whether I should include 
> or . What is the preferred way of achieving decent
> linking? I found some examples using PKGCONFIG - is it the good way?
>
> There should be at least a minimal example in the README, the rest can
> be derived from the doxygen comments. But, since the doxygen comments
> are already there, why not put the docs online?
>
> -- 
> Marcin
>
>
> ___
> 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

[SailfishDevel] Updating gcc?

2016-11-04 Thread Marcin Mielniczuk
Current gcc in Mer is 4.8, which is 2 years old. Current releases (5.4,
6.1) have full support for C++14, 4.8's support for C++11 is only
experimental.

C++11 brought many important changes such as constexprs or simply really
useful ones (auto types). It'd be great to have them in Mer.

Are there any plans for updating gcc in Mer?

-- 
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


[SailfishDevel] Documentation for mlite5

2016-11-04 Thread Marcin Mielniczuk
Is there any online documentation regarding mlite5? I'm not really sure
how I should use it in my project, whether I should include 
or . What is the preferred way of achieving decent
linking? I found some examples using PKGCONFIG - is it the good way?

There should be at least a minimal example in the README, the rest can
be derived from the doxygen comments. But, since the doxygen comments
are already there, why not put the docs online?

-- 
Marcin


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Recommended replacement for a spinner?

2016-11-04 Thread Marcin Mielniczuk
This helped a lot! Thanks!

Marcin

On 01.11.2016 21:59, Osmo Salomaa wrote:
> On 01.11.2016 21:15, Marcin Mielniczuk wrote:
>> In my app I'd like to present the user a spinner to let them choose an
>> arbitrary integer.
>>
>> What is a recommended replacement for this in Sailfish Silica? A
>> TextField with IntValidator? Or is there anything better?
>
> Add inputMethodHints and it should be good.
>
> TextField {
> inputMethodHints: Qt.ImhDigitsOnly
> }
>
> Silica does offer a slider, but it's probably bad if the integer is
> indeed arbitrary, as you'd need to set a minimum and maximum, and a
> linear scale between them might not be appropriate.
>

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Persistently storing a ListModel

2016-11-04 Thread Marcin Mielniczuk
Thanks a lot!

So I'm trying to store a pointer to ListModel and ConfigurationValue
drops this silently because it's an invalid value, doesn't it?

What is the standard way in Sailfish to access DConf from C++? I think
about reimplementing the model as a subclass of QAbstractListModel anyway.

Marcin

On 01.11.2016 20:46, Andrey Kozhevnikov wrote:
> you storing pointer to model, not model contents :)
> to store model data you should recursively convert model data to
> array, and vise versa.
>
> -- Исходное сообщение --
> От: "Marcin Mielniczuk" <marmistrz...@gmail.com>
> Кому: "Sailfish OS Developers" <devel@lists.sailfishos.org>
> Отправлено: 01.11.2016 22:32:57
> Тема: [SailfishDevel] Persistently storing a ListModel
>
>> Hi,
>>
>> I'm currently using org.nemomobile.configuration to store the
>> application settings. Now it came out it'd be beneficial to store a
>> ListModel between runs (if a user wants it).
>>
>> I tried the naive approach:
>>
>> property ListModel myModel: modelStorage.value
>>
>> ConfigurationValue {
>> id: modelStorage
>> key: Constants.modelStorageKey
>> defaultValue: ListModel {}
>> }
>>
>> But no dconf key seems to be generated after I populate the model.
>>
>> What is my best bet in this case? Is this the expected behavior or have
>> I done something wrong on my side?
>>
>> -- 
>> Marcin
>>
>>
>> ___
>> 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

[SailfishDevel] Persistently storing a ListModel

2016-11-01 Thread Marcin Mielniczuk
Hi,

I'm currently using org.nemomobile.configuration to store the
application settings. Now it came out it'd be beneficial to store a
ListModel between runs (if a user wants it).

I tried the naive approach:

property ListModel myModel: modelStorage.value

ConfigurationValue {
id: modelStorage
key: Constants.modelStorageKey
defaultValue: ListModel {}
}

But no dconf key seems to be generated after I populate the model.

What is my best bet in this case? Is this the expected behavior or have
I done something wrong on my side?

-- 
Marcin


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


[SailfishDevel] Recommended replacement for a spinner?

2016-11-01 Thread Marcin Mielniczuk
Hi,

In my app I'd like to present the user a spinner to let them choose an
arbitrary integer.

What is a recommended replacement for this in Sailfish Silica? A
TextField with IntValidator? Or is there anything better?

-- 
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Storing credentials safely in a python+QML app

2016-09-15 Thread Marcin Mielniczuk
I remember Harmattan uses accounts-qt framework (libaccountsetup0,
libsignon0, etc.) for SSO support. Did Sailfish drop it?

Marcin

On 15.09.2016 15:02, J. Pablo wrote:
> But the master password should be remembered by the user? What's the 
> difference then between this solution and just ask for the proper password 
> each time?
>
> Thanks!
>
> El jueves, 15 de septiembre de 2016 11:46:01 (CEST) Andrey Kozhevnikov 
> escribió:
>> you should use master password for saving credentials, or ask every time 
>> to enter password and save only login.
>>
>> -- Исходное сообщение --
>> От: "J. Pablo" 
>> Кому: "Sailfish OS Developers mailing list (devel@lists.sailfishos.org)" 
>> 
>> Отправлено: 15.09.2016 16:44:22
>> Тема: [SailfishDevel] Storing credentials safely in a python+QML app
>>
>>> Hello sailors!
>>>
>>> This is my first email in the list, although I've been reading for a 
>>> while.
>>>
>>> I'm designing a simple app that show the user some info about its 
>>> contract with its mobile carrier (pepephone, from Spain).
>>>
>>> Their API is pretty simple and you have to login each time with user 
>>> and password and then the servers returns a sessionID.
>>>
>>> I'd like to keep username and password safely in the phone. Now, I'm 
>>> aware that obfuscation is not an option, and any other safe method that 
>>> come to my mind needs a master password. I've asked to other dev and he 
>>> use a salt and the IMEI to encrypt it, but you only have to get other 
>>> app into the phone and knowing the algorithm (easly checking the code 
>>> on github) you can get the password.
>>>
>>> I wonder if SFOS has some kind of keyring like kde or gnome, or if 
>>> there is no other way than the described above. Any suggestion is 
>>> appreciated :)
>>>
>>> Cheers,
>>> Pablo.
>>> ___
>>> 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] sailfishos.org seems to limit the download speed to about 160kB/s

2016-09-02 Thread Marcin Mielniczuk
So what may be the reason? I usually download stuff with my full 
bandwidth (~320 kB/s)


Marcin

On 02.09.2016 18:53, Thomas Amler wrote:
I can't confirm that. Currently downloading the Windows SDK with 
6MiB/s. :-)



Am 02.09.2016 um 18:50 schrieb Marcin Mielniczuk:

Hi,

Either when downloading the sb2 target for HADK or when updating the
SFOS SDK the download speed oscillates between 120 and 180 kB/s.

If I start two downloads from sailfishos.org (both of the above) and
reach something like my maximium bandwidth (310 kB/s)

Is this done on purpose?


___
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


[SailfishDevel] sailfishos.org seems to limit the download speed to about 160kB/s

2016-09-02 Thread Marcin Mielniczuk

Hi,

Either when downloading the sb2 target for HADK or when updating the 
SFOS SDK the download speed oscillates between 120 and 180 kB/s.


If I start two downloads from sailfishos.org (both of the above) and 
reach something like my maximium bandwidth (310 kB/s)


Is this done on purpose?

--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


[SailfishDevel] SDK Maintenance Tool - partial upgrades?

2016-08-09 Thread Marcin Mielniczuk

Hi,

Is it possible to do partial upgrades of the SailfishOS SDK? My 
connection's really slow (2 Mbit/s) and the Maintenance Tool doesn't 
seem to resume downloads.


I'm able to uncheck some of the components but not all of them.

Regards,

--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] The UI dims after removing an item from GridView

2016-08-02 Thread Marcin Mielniczuk

Hi,

This happens even if deleting the item is the first thing I do. The 
model hasn't changed between the two calls.


But this doesn't happen if I use a RemorseItem.

Marcin

On 02.08.2016 17:54, Michael Fuchs wrote:

Hi,

did the model (MyModel) change during the first and the second time 
you opened the context menu?

I had such issues, when this was the case.

regards, Michael.

Am 02.08.2016 um 16:42 schrieb Marcin Mielniczuk:

Hi,

I created a SilicaGridView with a ContextMenu (placed in a 
ColumnLayout):


SilicaGridView {
id: myView

Layout.preferredWidth: parent.width
Layout.fillHeight: true

model: myModel

cellWidth: width / gridDimension // say, gridDimension = 2
cellHeight: height / gridDimension

delegate: BackgroundItem {

id: bgItem
width: myView.cellWidth
height: myView.cellHeight

ContextMenu {
id: contextMenu
parent: bgItem
anchors {
left: bgItem.left
right: bgItem.right
bottom: bgItem.bottom
}

MenuItem {
text: "Remove"
onClicked: myModel.remove(model.index)
}
}

onPressAndHold: contextMenu.show(this)

VisualElement {
/* ... */
}
}
}

Then I tried using it. I pressed and held the BackgroundItem. The menu
appeared. I stopped pressing the mouse. The screen dimmed. I decided not
to remove. The screen undimmed. I entered the menu again. The screen
dimmed. I removed the element: the screen did *not* undim.

What have I done wrong?

--
Marcin



___
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


[SailfishDevel] The UI dims after removing an item from GridView

2016-08-02 Thread Marcin Mielniczuk

Hi,

I created a SilicaGridView with a ContextMenu (placed in a ColumnLayout):

SilicaGridView {
id: myView

Layout.preferredWidth: parent.width
Layout.fillHeight: true

model: myModel

cellWidth: width / gridDimension // say, gridDimension = 2
cellHeight: height / gridDimension

delegate: BackgroundItem {

id: bgItem
width: myView.cellWidth
height: myView.cellHeight

ContextMenu {
id: contextMenu
parent: bgItem
anchors {
left: bgItem.left
right: bgItem.right
bottom: bgItem.bottom
}

MenuItem {
text: "Remove"
onClicked: myModel.remove(model.index)
}
}

onPressAndHold: contextMenu.show(this)

VisualElement {
/* ... */
}
}
}

Then I tried using it. I pressed and held the BackgroundItem. The menu 
appeared. I stopped pressing the mouse. The screen dimmed. I decided not 
to remove. The screen undimmed. I entered the menu again. The screen 
dimmed. I removed the element: the screen did *not* undim.


What have I done wrong?

--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Errors while instantiating a Dialog

2016-08-02 Thread Marcin Mielniczuk
I don't really understand your point. I took the example straight from 
the docs for Dialog. And if you mean pushing this directly onto the 
pageStack via Qt.resolvedUrl, the errors are just the same.


Marcin

On 02.08.2016 12:18, Андрей Кожевников wrote:


Open help article and check how dialog header should be used.

02 авг. 2016 г. 14:36 пользователь "Marcin Mielniczuk" 
<marmistrz...@gmail.com <mailto:marmistrz...@gmail.com>> написал:

>
> Hi,
>
> Doesn't help for me. And now the column and the header overlap.
>
>
> On 02.08.2016 10:32, Michael Neufing wrote:
>>
>> Hi Marcin,
>>
>> you should not put DialogHeader into a Column but directly into the 
Dialog.

>> That should solve your problem.
>>
>> Br,
>> Michael
>>
>> Am 02.08.2016 10:29, schrieb Marcin Mielniczuk:
>>>
>>> Hi,
>>>
>>> I copied the Dialog sample code from the doc:
>>>
>>> import QtQuick 2.0
>>> import Sailfish.Silica 1.0
>>>
>>> Dialog {
>>> property string name
>>>
>>> Column {
>>> width: parent.width
>>>
>>> DialogHeader { }
>>>
>>> TextField {
>>> id: nameField
>>> width: parent.width
>>> placeholderText: "What's your name?"
>>> label: "Name"
>>> }
>>> }
>>> }
>>>
>>> I want the Dialog to modify some properties of `MainPage.qml`
>>> onAccepted, so I instantiated it.
>>>
>>> import QtQuick 2.0
>>> import Sailfish.Silica 1.0
>>>
>>> Page {
>>> id: page
>>>
>>> /* some code, some SilicaFlickable, etc. */
>>>
>>> MyDialog {
>>>
>>> }
>>> }
>>>
>>> Then I get the following errors in the log:
>>>
>>>  p, li { white-space: pre-wra
>>>
>>> [W] unknown:189 -
>>> file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189 [1]:
>>> TypeError: Cannot read property 'backIndicatorDown' of null
>>>
>>> [W] unknown:194 -
>>> file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194 [2]:
>>> TypeError: Cannot read property 'backIndicatorDown' of null
>>>
>>> [W] unknown:247 -
>>> file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247 [3]:
>>> TypeError: Cannot read property 'forwardIndicatorDown' of null
>>>
>>> [W] unknown:242 -
>>> file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242 [4]:
>>> TypeError: Cannot read property 'forwardIndicatorDown' of null
>>>
>>> The same happens when I push the Dialog directly to the pageStack.
>>> What have I done wrong? Apart from those errors, the dialogs seems to
>>> work correct...
>>>
>>> --
>>> Marcin
>>>
>>>
>>> Links:
>>> --
>>> [1] file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189
>>> [2] file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194
>>> [3] file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247
>>> [4] file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org 
<mailto:devel-unsubscr...@lists.sailfishos.org>

>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org 
<mailto:devel-unsubscr...@lists.sailfishos.org>

>
>
> --
> Marcin
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org 
<mailto: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] Errors while instantiating a Dialog

2016-08-02 Thread Marcin Mielniczuk

Hi,

Doesn't help for me. And now the column and the header overlap.

On 02.08.2016 10:32, Michael Neufing wrote:

Hi Marcin,

you should not put DialogHeader into a Column but directly into the 
Dialog.

That should solve your problem.

Br,
Michael

Am 02.08.2016 10:29, schrieb Marcin Mielniczuk:

Hi,

I copied the Dialog sample code from the doc:

import QtQuick 2.0
import Sailfish.Silica 1.0

Dialog {
property string name

Column {
width: parent.width

DialogHeader { }

TextField {
id: nameField
width: parent.width
placeholderText: "What's your name?"
label: "Name"
}
}
}

I want the Dialog to modify some properties of `MainPage.qml`
onAccepted, so I instantiated it.

import QtQuick 2.0
import Sailfish.Silica 1.0

Page {
id: page

/* some code, some SilicaFlickable, etc. */

MyDialog {

}
}

Then I get the following errors in the log:

 p, li { white-space: pre-wra

[W] unknown:189 -
file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189 [1]:
TypeError: Cannot read property 'backIndicatorDown' of null

[W] unknown:194 -
file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194 [2]:
TypeError: Cannot read property 'backIndicatorDown' of null

[W] unknown:247 -
file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247 [3]:
TypeError: Cannot read property 'forwardIndicatorDown' of null

[W] unknown:242 -
file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242 [4]:
TypeError: Cannot read property 'forwardIndicatorDown' of null

The same happens when I push the Dialog directly to the pageStack.
What have I done wrong? Apart from those errors, the dialogs seems to
work correct...

--
Marcin


Links:
--
[1] file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189
[2] file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194
[3] file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247
[4] file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242
___
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


--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] The SailfishOS IDE todo plugin doesn't work

2016-08-02 Thread Marcin Mielniczuk

Hi,

I tried both of the modes. For me disabling and enabling the plug-in 
fixed the issue. Maybe the problem was that I was using the ToDo plugin 
with QtCreator previously...?


Regards,
Marcin

On 31.07.2016 19:15, Martin Kampas wrote:

Hi Marcin,

For me it works well. Did you notice you can switch between displaying TODOs 
from current document only or from all documents in the active project in the 
To-Do Entries output pane? Could you please provide a detailed step-by-step 
description what did you do?

BR,
Martin
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


[SailfishDevel] Errors while instantiating a Dialog

2016-08-02 Thread Marcin Mielniczuk

Hi,

I copied the Dialog sample code from the doc:

import QtQuick 2.0
import Sailfish.Silica 1.0

Dialog {
property string name

Column {
width: parent.width

DialogHeader { }

TextField {
id: nameField
width: parent.width
placeholderText: "What's your name?"
label: "Name"
}
}
}

I want the Dialog to modify some properties of `MainPage.qml` 
onAccepted, so I instantiated it.


import QtQuick 2.0
import Sailfish.Silica 1.0

Page {
id: page

/* some code, some SilicaFlickable, etc. */

MyDialog {

}
}


Then I get the following errors in the log:

[W] unknown:189 - 
file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189: TypeError: 
Cannot read property 'backIndicatorDown' of null


[W] unknown:194 - 
file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194: TypeError: 
Cannot read property 'backIndicatorDown' of null


[W] unknown:247 - 
file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247: TypeError: 
Cannot read property 'forwardIndicatorDown' of null


[W] unknown:242 - 
file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242: TypeError: 
Cannot read property 'forwardIndicatorDown' of null


The same happens when I push the Dialog directly to the pageStack. What 
have I done wrong? Apart from those errors, the dialogs seems to work 
correct...


--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] The SailfishOS IDE todo plugin doesn't work

2016-07-31 Thread Marcin Mielniczuk

Hi,

I enabled the TODO plugin in the settings. Unfortunately, no TODO 
entries are displayed.


Do you have an idea why?

--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Using QtQuick.Layouts

2016-07-28 Thread Marcin Mielniczuk

Thanks for the reply!

Is it possible to change the port for the SailifshOS tab? I have tty.js 
running on the same port, had to kill it.


On 28.07.2016 16:54, Michael Fuchs wrote:

I'm very sorry, I misread your post.

Install the same package in the emulator helped here.

In QtCreator go to "Sailfish OS" on the left side, choose Targets -> 
manage (next to 486); type "layout" in the new search field; check 
install next to "qt5-qtquickcontrols-layouts"; click install-button; 
wait for success message;

quit QTCreator; restart it; enjoy.

regards.

Am 28.07.2016 um 16:39 schrieb Marcin Mielniczuk:

Michael,

The whole thing works *in the Emulator*. This is not a problem.
But the SailfishOS-i486 mersdk target doesn't have it installed. It's
not needed for deployment but for the local coding (so that I get the
code completion and no warnings in the editor)

On 28.07.2016 14:08, Michael Fuchs wrote:

Hi,

either you install the required package (I guess
qt5-qtquickcontrols-layouts) manually via ssh, or you put the
dependency in the spec file and deploy the rpm, then it will get
installed automatically.

regards, Michael.



Am 28.07.2016 um 13:18 schrieb Marcin Mielniczuk:

Hi,

I'm working on a Sailfish app. I want to use a ColumnLayout instead 
of a

Column to take advantage of convienience properties such as
Layout.fillHeight.

For some reason the QML import QtQuick.Layouts is missing from
mersdk/targets/SailfishOS-i486/usr/lib/qt5/qml. On the other hand, the
code works perfectly in the Emulator.

Is there any way to make QtCreator recognize the QtQuick.Layouts 
import
and suggest autocompletions other than force copying the module 
from the

Emulator?

Regards,


___
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


--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Using QtQuick.Layouts

2016-07-28 Thread Marcin Mielniczuk

Michael,

The whole thing works *in the Emulator*. This is not a problem.
But the SailfishOS-i486 mersdk target doesn't have it installed. It's 
not needed for deployment but for the local coding (so that I get the 
code completion and no warnings in the editor)


On 28.07.2016 14:08, Michael Fuchs wrote:

Hi,

either you install the required package (I guess 
qt5-qtquickcontrols-layouts) manually via ssh, or you put the 
dependency in the spec file and deploy the rpm, then it will get 
installed automatically.


regards, Michael.



Am 28.07.2016 um 13:18 schrieb Marcin Mielniczuk:

Hi,

I'm working on a Sailfish app. I want to use a ColumnLayout instead of a
Column to take advantage of convienience properties such as
Layout.fillHeight.

For some reason the QML import QtQuick.Layouts is missing from
mersdk/targets/SailfishOS-i486/usr/lib/qt5/qml. On the other hand, the
code works perfectly in the Emulator.

Is there any way to make QtCreator recognize the QtQuick.Layouts import
and suggest autocompletions other than force copying the module from the
Emulator?

Regards,


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org


--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


[SailfishDevel] Using QtQuick.Layouts

2016-07-28 Thread Marcin Mielniczuk

Hi,

I'm working on a Sailfish app. I want to use a ColumnLayout instead of a 
Column to take advantage of convienience properties such as 
Layout.fillHeight.


For some reason the QML import QtQuick.Layouts is missing from 
mersdk/targets/SailfishOS-i486/usr/lib/qt5/qml. On the other hand, the 
code works perfectly in the Emulator.


Is there any way to make QtCreator recognize the QtQuick.Layouts import 
and suggest autocompletions other than force copying the module from the 
Emulator?


Regards,

--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Timeout of MerSDK and the Emulator

2016-07-24 Thread Marcin Mielniczuk

Hi,

That was exactly the same problem. Checking those boxes fixed that for 
me too.


Thanks!

On 23.07.2016 16:28, r0kk3rz wrote:

Hi Guys,

I just faced a similar issue and figured out that in the VBox network 
settings for the VM that the 'Cable Connected' checkbox for each 
adapter was unticked after a clean install.


Checking those boxes fixed the issue

Regards,

Lewis Rockliffe

On Thu, Jul 21, 2016 at 8:24 AM, Marcin Mielniczuk 
<marmistrz...@gmail.com <mailto:marmistrz...@gmail.com>> wrote:


Hi,

I tried zyppering the package, but

Error code: connection failed
Error message: Couldn't resolve host: 'releases.jolla.com
<http://releases.jolla.com>'

$ ping 8.8.8.8
connect: Network is unreachable

So I have no networking inside the VM.

Last upgrade was a couple of days ago, next will be today. I did
reboot ;)

The port is open:

State  Recv-Q Send-Q  
Local Address:Port Peer Address:Port

LISTEN 0 10 127.0.0.1: <http://127.0.0.1:> *:*
users:(("VirtualBox",pid=31842,fd=47))

I'm the member of the following groups: adm, bumblebee, lp, sudo,
vboxusers, wheel

On 21.07.2016 07:50, Martin Kampas wrote:

Hi Marcin,

failed.log, statefs.log: both failing statefs and tmpfiles are
known issues and shouldn't be related to this.

sshd.log: according to the log you mistyped "sshd" as "ssh", but
anyway "sshd.service" is not used, instead you should check the
status of "sshd.socket". Also note that the config is
"/etc/ssh/sshd_config_engine".

If the output of `journalctl _COMM=sshd -b` was empty after
trying to log in via SSH even with verbosity increased, then my
suspicion falls on host/virtualbox.

You could also verify with tcpdump that it did not reach the
guest (install with `zypper in tcpdump`, run as `tcpdump -n port
ssh` inside the MerSDK VM). And on host you can check that the
ports are really occupied by virtualbox with `sudo ss -tpln |grep
':222[23]\>'`.

I am also using Arch Linux as you (last full system upgrade on
2016-06-28) and it works well. Did you try reboot? :)

BR,
Martin



-- 
Marcin



___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
<mailto:devel-unsubscr...@lists.sailfishos.org>




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Timeout of MerSDK and the Emulator

2016-07-21 Thread Marcin Mielniczuk

Hi,

I tried zyppering the package, but

Error code: connection failed
Error message: Couldn't resolve host: 'releases.jolla.com'

$ ping 8.8.8.8
connect: Network is unreachable

So I have no networking inside the VM.

Last upgrade was a couple of days ago, next will be today. I did reboot ;)

The port is open:

State  Recv-Q Send-Q   Local 
Address:Port Peer Address:Port
LISTEN 0 10 127.0.0.1: *:*   
users:(("VirtualBox",pid=31842,fd=47))


I'm the member of the following groups: adm, bumblebee, lp, sudo, 
vboxusers, wheel


On 21.07.2016 07:50, Martin Kampas wrote:

Hi Marcin,

failed.log, statefs.log: both failing statefs and tmpfiles are known 
issues and shouldn't be related to this.


sshd.log: according to the log you mistyped "sshd" as "ssh", but 
anyway "sshd.service" is not used, instead you should check the status 
of "sshd.socket". Also note that the config is 
"/etc/ssh/sshd_config_engine".


If the output of `journalctl _COMM=sshd -b` was empty after trying to 
log in via SSH even with verbosity increased, then my suspicion falls 
on host/virtualbox.


You could also verify with tcpdump that it did not reach the guest 
(install with `zypper in tcpdump`, run as `tcpdump -n port ssh` inside 
the MerSDK VM). And on host you can check that the ports are really 
occupied by virtualbox with `sudo ss -tpln |grep ':222[23]\>'`.


I am also using Arch Linux as you (last full system upgrade on 
2016-06-28) and it works well. Did you try reboot? :)


BR,
Martin



--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Timeout of MerSDK and the Emulator

2016-07-20 Thread Marcin Mielniczuk

Hi,


sshd is not running at all. The output of `systemctl --failed`, 
`systemctl status statefs`, `systemctl status sshd`




On 18.07.2016 16:27, Martin Kampas wrote:

Hi Marcin,

Could you check SSH logs on the VM side? For that purpose please start 
the MerSDK VM directly from VirtualBox and quit Qt Creator *before* 
that (it would try to reconnect periodically, filling the log 
excessively). Started this way the MerSDK VM will show its window - 
read the instructions there, log in, then check logs e.g. with 
'journalctl -b _COMM=sshd' before/after trying to log in via SSH. 
Possibly increase SSH verbosity on both client and server side.


You can copy logs from the VM via /home/mersdk/share/ which is mapped 
to your HOME by default.


BR,
Martin


--
Marcin

UNIT   LOAD   ACTIVE SUBDESCRIPTION
statefs.serviceloaded failed failed StateFS FUSE filesystem, system-wide
systemd-tmpfiles-setup-dev.service loaded failed failed Create static device nodes in /dev
systemd-tmpfiles-setup.service loaded failed failed Recreate Volatile Files and Directories

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB= The low-level unit activation state, values depend on unit type.

3 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
ssh.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

statefs.service - StateFS FUSE filesystem, system-wide
   Loaded: loaded (/lib/systemd/system/statefs.service; disabled)
   Active: failed (Result: start-limit) since Wed 2016-07-20 17:22:00 UTC; 3min 52s ago

Jul 20 17:21:59 SailfishSDK systemd[1]: Failed to start StateFS FUSE filesystem, system-wide.
Jul 20 17:21:59 SailfishSDK systemd[1]: Unit statefs.service entered failed state.
Jul 20 17:22:00 SailfishSDK systemd[1]: statefs.service holdoff time over, scheduling restart.
Jul 20 17:22:00 SailfishSDK systemd[1]: statefs.service start request repeated too quickly, refusing to start.
Jul 20 17:22:00 SailfishSDK systemd[1]: Unit statefs.service entered failed state.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Timeout of MerSDK and the Emulator

2016-07-19 Thread Marcin Mielniczuk

Hi,

As root the logs are empty (only a message: logs begin at ... end at ...)

On 19.07.2016 10:22, Martin Kampas wrote:

Hi Marcin,

> Before and after: No journal files were found.

Did you run it as root?

BR,
Martin



--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Timeout of MerSDK and the Emulator

2016-07-18 Thread Marcin Mielniczuk

I have a weird thing. running `journalctl -b _COMM=sshd` yields

Failed to parse relative boot ID number '_COMM=sshd"

On 18.07.2016 16:27, Martin Kampas wrote:

Hi Marcin,

Could you check SSH logs on the VM side? For that purpose please start 
the MerSDK VM directly from VirtualBox and quit Qt Creator *before* 
that (it would try to reconnect periodically, filling the log 
excessively). Started this way the MerSDK VM will show its window - 
read the instructions there, log in, then check logs e.g. with 
'journalctl -b _COMM=sshd' before/after trying to log in via SSH. 
Possibly increase SSH verbosity on both client and server side.


You can copy logs from the VM via /home/mersdk/share/ which is mapped 
to your HOME by default.


BR,
Martin


--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Timeout of MerSDK and the Emulator

2016-07-18 Thread Marcin Mielniczuk

Hi,

I didn't install AppArmor, SELinux or a firewall manually.

I had an Ubuntu live iso, installed openssh added a port forwarding on 
adapter 1 (NAT): protocol: TCP, host IP: 127.0.0.1, host port: 2224, 
guest IP: left blank, guest port 22


Then I connected: ssh -p 2224 ubuntu@localhost and I was able to 
successfully login via ssh.



On 18.07.2016 11:08, Martin Kampas wrote:

Hi Marcin,

> ssh_exchange_identification: read: Connection reset by peer

Could this be result of some firewall or mandatory access control  
(SELinux, AppArmor, ...) on your installation? (Can you SSH to any 
other VirtualBox VM? If you have no other VM, could you install e.g. 
Arch Linux in your VirtualBox, setup port forwarding like it is done 
with build VM and emulator from Sailfish SDK and check if you can SSH 
to it?)


BR,
Martin


--
Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Timeout of MerSDK and the Emulator

2016-07-18 Thread Marcin Mielniczuk
I guess I tried again once or twice, with the same result. Then gave up.

Basically the emulator shows up after ~5 seconds but the SDK can't connect to 
it.

On Mon Jul 18 08:29:21 2016 Martin Kampas  wrote:
> Hi Marcin,
> 
> > Anyway, the SDK reported a timeout and asked whether I want to try
> > running the emulator again.
> 
> What happened then? Did the message window persisted (re-)appearing on
> the screen indefinitely?
> 
> BR,
> Martin
> ___
> 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

[SailfishDevel] Timeout of MerSDK and the Emulator

2016-07-17 Thread Marcin Mielniczuk

Hi,

I installed the SailfishOSSDK-Beta-1602-Qt5-linux-64-offline.run on my
Arch Linux. I'm using Virtualbox 5.1, uname -a is: Linux arch
4.4.15-1-lts #1 SMP Mon Jul 11 20:46:47 CEST 2016 x86_64 GNU/Linux

I created a sample project and ran the SailfishOS emulator. Within 30
seconds the emulator window has appeared. Anyway, the SDK reported a
timeout and asked whether I want to try running the emulator again. The
Virtualbox GUI app reported a running VM too.

The same happens for the MerSDK VM.

The log is: ( tried to launch the MerSDK machine too)

 > devel/SailfishOS/bin/qtcreator
QProcess: Destroyed while process ("/usr/bin/lldb-mi") is still running.
QProcess: Destroyed while process ("/usr/bin/lldb-mi-3.8.0") is still
running.
MerConnection: Another instance for VM "SailfishOS Emulator" already exists
QByteArray ProjectExplorer::runGcc(const Utils::FileName&, const
QStringList&, const QStringList&):
"/home/marcin/.config/SailfishBeta8/mer-sdk-tools/MerSDK/SailfishOS-i486/gcc"
"-xc++ -E -dM -m32 -D_REENTRANT -fPIE -" returned exit code 1: ""
QByteArray ProjectExplorer::runGcc(const Utils::FileName&, const
QStringList&, const QStringList&):
"/home/marcin/.config/SailfishBeta8/mer-sdk-tools/MerSDK/SailfishOS-i486/gcc"
"-xc++ -E -dM -m32 -D_REENTRANT -fPIE -" returned exit code 1: ""
MerConnection: "Failed to establish SSH conection with virtual machine
\"MerSDK\": 2 Timeout waiting for reply from server. (Consider
increasing SSH connection timeout in options.)"
MerConnection: "Failed to establish SSH conection with virtual machine
\"SailfishOS Emulator\": 2 Timeout waiting for reply from server.
(Consider increasing SSH connection timeout in options.)"

Do you have any idea why it happens?

Marcin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Neo900 support

2015-04-09 Thread Marcin Mielniczuk
Schifano: and what about Android apps on N900? There was a project, now dead, 
aiming to bring them to N900 via chroot (driven by lexik) but went not far from 
the theoretical stage. There are some clues though about the needed kernel 
modules and some posts about the partial progress. It's a good point to start.

I'm sure you would find a couple of people to help if you ask explicitly. If 
you want some more details, let me know. Maybe you'll be the one who'll bring 
us the Android apps?

Regards,

-- 
Ex mea Nokia N900 missum
Marcin

On Thu Apr   9 00:27:38 2015 Schifano Alexandre schif...@polytech.unice.fr 
wrote:
 It depends of what you mean by good, and what do you expect as
 physical keyboard. You can find two or three year-old smartphones which
 are fine, with physical keyboard, but no ubber processors and no 4G.
 You can also find on the Chinese market smartphones like the Samsung
 Galaxy Golden.
 But of course the best smartphone with a physical keyboard will be the
 one which Jolla will make ;) (if Jolla will do it one day ...)
 
 On 08/04/2015 23:41, Brenda Fernández wrote:
  Are there still good Android phones with physical keyboards? ;)
  
  On Mon, Apr 6, 2015 at 1:59 PM, Schifano Alexandre
  schif...@polytech.unice.fr mailto:schif...@polytech.unice.fr wrote:
  
  Oh, I assumed you install Android app in a chrooted Android environment
  which implies an Android kernel.
  I confess than I'm a bit disapointed to discover this, because I wanted
  to install Sailfish either on the Neo900 or on a good Android phone
  with a physical keyboard for having an interresting OS/device with the
  possibility to install Android apps when there is not equivalent.
  
  Thank you, now I have a better understanding of how it works.
  
  On 06/04/2015 14:54, Andrey Kozhevnikov wrote:
  Sailfish is Jolla UI over Mer with Wayland Lipstick windows
  manager. It
  runs on normal Linux kernel. Android adaptations using libhybris.
  If you can run Nemo on your device you can just add/replace Jolla
  repositories and install sailfish on it.
  You will not have possibility to install android apps until
  someone will
  create open android launcher or Jolla start licensing aliendalvik for
  non-Jolla devices.
  
  06.04.2015 17:48, Schifano Alexandre пишет:
  Hi,
  
  Still about a Neo900 support, I have an other question :
  
  As far as I understand, basically Sailfish is Mer (Wayland
  version) with
  the Jolla UI, and with an Android kernel and libhybris. So if I
  am able
  to have Nemo running rightly on a N(eo)900 with Wayland, I will
  be able
  to run Sailfish apps ? And if I am able to do it with an Android
  kernel
  and libhybris, I will be able to have it working with the
  possibility to
  install Android apps ?
  
  Best regards
  
  On 05/04/2015 08:12, Schifano Alexandre wrote:
  Hi,
  
  I'm very interrested by Sailfish OS, however I'm also very
  interrested
  by the Neo900. This smartphone is a modified Nokia N900, with a TI
  DM3730 1 GHz processor (Cortex-A8 with ARMv7-A instructions,
  mono-core)
  and 1GB of RAM (more here : http://neo900.org/specs). Do you think
  Sailfish will be able to run smoothly on it ? Will you support the
  Neo900 and allowing users to install your OS on it ?
  
  Best regards,
  Alexandre Schifano
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  devel-unsubscr...@lists.sailfishos.org
  mailto:devel-unsubscr...@lists.sailfishos.org
  
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  devel-unsubscr...@lists.sailfishos.org
  mailto:devel-unsubscr...@lists.sailfishos.org
  
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  devel-unsubscr...@lists.sailfishos.org
  mailto:devel-unsubscr...@lists.sailfishos.org
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  devel-unsubscr...@lists.sailfishos.org
  mailto: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] SailfishOS SDK in /opt

2014-01-01 Thread Marcin Mielniczuk
Well, I should've said it more precisely :) - I open a project created by the 
first alpha. I click the emulator button. It grays out, nothing happens.
-- 
Sent from my Nokia N900
Marcin

On Wed Jan   1 15:56:45 2014 christopher.l...@thurweb.ch wrote:
 Marcin
 
 Do you have a project open? The Emulator and SDK launch buttons remain   
 grey until you do
 
 Chris
 
 Zitat von Mikael Hermansson m...@7b4.se:
 
  That should work, I have it in opt and have no problem.
  
  Looks more like you have an issue with you project file?
  
  check the compile output/message screen if you get qmake errors or
  similar?
  
  also try build-clean all.
  
  
  On Wednesday 01 January 2014 11.12.58 Marcin M. wrote:
   Hi,
   
   I've installed the SDK into /opt, but I'm unable to launch the
   emulator nor the SDK VM - only the buttons are grayed out. Is there
   a known workaround, so that I can avoid reinstalling into
   /home/$USER/ ?
   
   thanks
   --
   Marcin
  
  --
  Skickat från Lenovo Thinkpad X230 running Kubuntu desktop
  ___
  SailfishOS.org Devel mailing list
  
 
 
 
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] If this list even used?

2013-09-30 Thread Marcin Mielniczuk
Guess he doesn't get anything like me some time ago.

--
Marcin


2013/9/30 Jukka Eklund ju...@jukka.com

 +1 :)



 On Mon, Sep 30, 2013 at 11:21 AM, Benoît HERVIER kher...@khertan.netwrote:



 Le 2013-09-30 10:11, Nathan a écrit :

  Where's the activity? WTF.
 __**_
 SailfishOS.org Devel mailing list


 Here FTW !

 --
 Benoît HERVIER - http://khertan.net/

 __**_
 SailfishOS.org Devel mailing list



 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] If this list even used?

2013-09-30 Thread Marcin Mielniczuk
iirc using inboxalias.com address.

--
Marcin


2013/9/30 FIlip Kłębczyk fklebc...@gmail.com

 W dniu 30.09.2013 17:24, Marcin Mielniczuk pisze:

  Guess he doesn't get anything like me some time ago.


 Do you have an idea what was it in your case? I mean the reason why you
 didn't receive mails.

 Regards,
 Filip


 __**_
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Application always active

2013-09-23 Thread Marcin Mielniczuk
Hi,

Thanks

BR

--
Marcin


2013/9/22 Robin Burchell ro...@viroteck.net

 Hi,

  On 22. sep. 2013, at 13:19, Marcin Mielniczuk marmistrz...@gmail.com
 wrote:
  I'm trying to utilze ApplicationWindow.applicationActive to set the
 cover text. But the onApplicationActiveChanged signal isn't emitted, and
 the applicationActive property is always true.

 Try Qt.application.active instead. applicationActive was needed due to
 details about how our X11 stack worked. In a future release,
 applicationActive is deprecated (and aliased to
 Qt.application.active). There were some fixes required to make it
 work, however, so it could be the case that it simply won't work until
 a future SDK update.

 BR,
 Robin

___
SailfishOS.org Devel mailing list

[SailfishDevel] Application always active

2013-09-22 Thread Marcin Mielniczuk
Hello,

I'm trying to utilze ApplicationWindow.applicationActive to set the cover
text. But the onApplicationActiveChanged signal isn't emitted, and the
applicationActive property is always true. (When I used an cover action
logging the applicationActive property, it was printed as true, even though
the app was minimized)

Some of the code;
main.qml:

 import QtQuick 2.1
 import Sailfish.Silica 1.0
 import BigText 1.0
 import pages

 ApplicationWindow
 {
 id: appwin
 initialPage: MainPage { }
 cover: Qt.resolvedUrl(cover/CoverPage.qml)

 Settings {id: settings}
 property string bigTextFontFamily: (settings.fontFamily != ) ?
 settings.fontFamily : Theme.fontFamily
 property string bigTextText

 Component.onDestruction: console.log(quitting)
 onApplicationActiveChanged: console.log(active =  +
 applicationActive)

 }


CoverPage.qml

 import QtQuick 2.0
 import Sailfish.Silica 1.0

 CoverBackground {
 Label {
 id: label
 anchors.centerIn: parent
 text: bigTextText
 }

 CoverActionList {
 id: coverAction

 CoverAction {
 iconSource: image://theme/icon-cover-next
 onTriggered: console.log(appwin.applicationActive)
 }
 }
 }


What am I doing wrong? Or is it a bug?
--
Marcin
___
SailfishOS.org Devel mailing list