[SailfishDevel] Setting application screen orientation from C++

2014-07-17 Thread Piotr Tworek
Hi,

Is there a way to lock application screen orientation to landscape
directly from Qt/C++ code? I know it's possible from QML, but I can't
find any docs how the same can be done from C++.

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


Re: [SailfishDevel] Fwd: QtCreator issues

2014-07-17 Thread Stijn Devriendt
Hi Juha,

Thanks for taking the time to debug this.
I guess the following command could be used to find differences between the
2 versions:
  find ~/SailfishOS -type f -executable -exec file {} \; | grep ELF | cut
-d: -f1 | sort | xargs ldd > versionX

Thanks,
Stijn





On Thu, Jul 17, 2014 at 3:45 PM, Juha Kallioinen 
wrote:

>  On 17.07.2014 13:39, Juha Kallioinen wrote:
>
>
>
> Hi thanks for debugging,
>
> I can't figure out the reason yet, just a quick report.
>
> I can reproduce the failure here in Sabayon KDE 14.07 version, but not in
> the GNOME version.
>
> I could not reproduce it in Kubuntu 14.04 (also uses KDE, version 4.13.2).
>
> One system library caught my eye, Sabayon loads libpng16.so.16 and Kubuntu
> loads libpng12.so.0, although I'm sure I've built Qt so that it would use
> the qt plugin and not system libpng. But maybe it doesn't affect that code
> path yet.
>
>
> I built the qt creator in Sabayon KDE and it does work then.. so I think
> the build machine (ubuntu 10.04 with minimal extra packages installed ) has
> some build dependency that's incompatible with Sabayon right now.
>
> Best regards,
>  Juha
>
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] How to get dconf list of sub-items with MGConfItem?

2014-07-17 Thread Andrey Kozhevnikov

done with:
https://github.com/nemomobile/mlite/pull/18
https://github.com/nemomobile/nemo-qml-plugin-configuration/pull/6

17.07.2014 22:12, Mohammed Hassan пишет:

On Wed, Jul 16, 2014 at 06:22:58PM +0600, Andrey Kozhevnikov wrote:

showing child items is not implemented, only child dirs function is
available.
if you're interested i can share class from my project replacing MGConfItem

Do you feel like submitting a PR against mlite/MGConfItem [1] that adds
your needed functionality?

It'd then be available for all SailfishOS developers.

[1] https://github.com/nemomobile/mlite

Cheers,
___
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] How to get dconf list of sub-items with MGConfItem?

2014-07-17 Thread Andrey Kozhevnikov

sure i'm planning that :)

17.07.2014 22:12, Mohammed Hassan пишет:

On Wed, Jul 16, 2014 at 06:22:58PM +0600, Andrey Kozhevnikov wrote:

showing child items is not implemented, only child dirs function is
available.
if you're interested i can share class from my project replacing MGConfItem

Do you feel like submitting a PR against mlite/MGConfItem [1] that adds
your needed functionality?

It'd then be available for all SailfishOS developers.

[1] https://github.com/nemomobile/mlite

Cheers,
___
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] How to get dconf list of sub-items with MGConfItem?

2014-07-17 Thread Mohammed Hassan
On Wed, Jul 16, 2014 at 06:22:58PM +0600, Andrey Kozhevnikov wrote:
> showing child items is not implemented, only child dirs function is
> available.
> if you're interested i can share class from my project replacing MGConfItem

Do you feel like submitting a PR against mlite/MGConfItem [1] that adds
your needed functionality?

It'd then be available for all SailfishOS developers.

[1] https://github.com/nemomobile/mlite

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


Re: [SailfishDevel] Is support for commercial apps a TABOO subject?

2014-07-17 Thread Marcin M.
When the Harbor becomes open for paid apps, will we be permitted to use
nemo-qml-plugin-configuration? Should we then put the apps' settings into
the "Settings" app or should they be handed inside the app?

--
Marcin


2014-05-29 9:22 GMT+02:00 Giuliettasw :

> Another cool thing could be possibility to have beta testing on end users
> (as for example steam does for games).
>
>
> Von meinem iPad gesendet
>
> Am 29.5.2014 um 2.32 schrieb Artem Marchenko :
>
> Hi there
>
> > In the mean time, you have time to get your apps ready, tested and
> polished. Also,
> > let us know what additional APIs you need for your Harbour app so that
> by the time
> > payments are available, your app is ready to sail.
>
> As for harbour-related APIs and functions, subscription-based and
> try-before-you-buy would have been very nice [for me at least] as IMHO they
> motivate developers for continuous app improvement.
>
> I'd love to have platform support for something like WhatsApp is doing:
> have free usage for a substantially long time (a month at least, maybe a
> year), and then something like $1 or even $0.1 per half a year. That would
> motivate for paying only for the actually useful apps (you tried app for a
> long time and still use it) and for continuing development (if app doesn't
> improve, user uninstalls and goes for another app).
>
> Sure, how to implement it technically without touching user privacy too
> much is a separate story (who will check whether user still has the app
> installed/running?). One option could be to encourage implementing this via
> in-app purchase of subscriptions (a'la iOS?) that could be verified
> completely on device without contacting the home base except for the act of
> purchase.
>
> Cheers,
> Artem.
>
> On Fri, Apr 25, 2014 at 3:42 PM, Karl Granström 
> wrote:
>
>> Ahoy!!!
>>
>> We see the payment support in store as a really important part of our
>> developer offering. We are currently working to support payments in our
>> Jolla Store and Harbour but there are a lot of things for us to do. Our
>> current target is to provide you the monetizing possibility durign the 2nd
>> half of  2014.
>>
>> In the mean time, you have time to get your apps ready, tested and
>> polished. Also, let us know what additional APIs you need for your Harbour
>> app so that by the time payments are available, your app is ready to sail.
>>
>> Br,
>> Jolla Store team
>>
>>
>>
>> On 24 Apr 2014, at 14:34, Mohammed Hassan <
>> mohammed.has...@jollamobile.com> wrote:
>>
>> > On Thu, Apr 24, 2014 at 09:33:22AM +0200, tw_bolek wrote:
>> > [...]
>> >> So my question is: is this some kind of taboo subject, or something of
>> as little importance that for over 4 months now no Jollan has said A WORD
>> about it despite numerous requests?
>> >>
>> >> A couple of my friends already gave up after waiting so long for even
>> just any information, and I must say that I'm slowly losing hope, too.  We
>> all understand and are aware of the enormous job Jolla has been doing, so
>> we're asking for just INFORMATION about the progress, even just if AT ALL
>> there are any plans to do it in a foreseeable future, and if so then
>> knowing even just as little as if it will take a month or half a year would
>> be all we need...
>> >
>> > There will be support for commercial apps and those will have copy
>> protection. This was
>> > mentioned bt Rainisto long ago already.
>> >
>> > I cannot give more info nor can I give an ETA for that though :/
>> >
>> > Cheers,
>> > ___
>> > SailfishOS.org Devel mailing list
>>
>> ___
>> SailfishOS.org Devel mailing list
>>
>
>
>
> --
> Artem Marchenko
> http://agilesoftwaredevelopment.com
> http://twitter.com/AgileArtem
>
> ___
> 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] Installing powertop failed - Failed to obtain authentification

2014-07-17 Thread Kimmo Lindholm
>Fatal error: Failed to obtain authentification

In 1.0.8.19 you need to use pkcon as root (devel-su)




From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Steffen Förster
Sent: 16. heinäkuuta 2014 21:27
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Installing powertop failed - Failed to obtain 
authentification

Hi

I have to install powertop on my Jolla (my app was rejected).

The install explanation on 
https://together.jolla.com/question/13243/my-app-got-rejected-to-store-because-of-high-power-consumption-how-to-debug-problems/#13247
 failed on my Jolla.

I should execute these three steps:

$ ssu ar mer-tools
$ pkcon refresh
$ pkcon install powertop

--

Step 2 failed with following output:

Refreshing cache
Waiting in queue
Waiting for authentication
Fatal error: Failed to obtain authentification

Step 3 failed with following output:

Command failed: this tool could not find any available package: could not find 
powertop

--

Any suggestions? (Info: wifi is connected, developer mode is active)

Thanks,
Steffen




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

Re: [SailfishDevel] Translating apps for SailfishOS

2014-07-17 Thread Marcin M.
Thanks. I worked it around by installing qt5 devtools and qmake and
hardcoding its path. Easy but works like charm.

--
Marcin


2014-07-17 11:52 GMT+02:00 Andrey Kozhevnikov :

>  you can login [1] to Mer VM and do what you want manually
>
> [1] https://sailfishos.org/develop-faq.html
>
> 17.07.2014 15:38, Marcin M. пишет:
>
> And how can I run the mer's lupdate & lrelease from terminal?
>
>  --
> Marcin
>
>
> 2014-07-17 11:36 GMT+02:00 Marcin M. :
>
>>   Thanks
>>
>>  1. The problem is that Tools/External/lupdate doesn't do anything. I
>> created translations/harbour-myapp-pl.ts, ran Tools/External/lupdate and
>> the pl translation file didn't change.
>>
>>  My .pro looks like that:
>>
>> TARGET = harbour-myapp
>>
>> CONFIG += sailfishapp
>>
>> SOURCES += src/harbour-myapp.cpp \
>> src/settings.cpp
>>
>> OTHER_FILES += qml/harbour-myapp.qml \
>> qml/cover/CoverPage.qml \
>> rpm/harbour-myapp.changes.in \
>> rpm/harbour-myapp.spec \
>> rpm/harbour-myapp.yaml \
>> harbour-myapp.desktop \
>> qml/pages/SettingsPage.qml \
>> qml/pages/MainPage.qml \
>> qml/pages/FontPickerDialog.qml \
>> qml/pages/WelcomeDialog.qml \
>> harbour-myapp.png \
>> translations/harbour-myapp-de.ts \
>> translations/harbour-myapp-pl.ts
>> CONFIG += sailfishapp_i18n
>> TRANSLATIONS += translations/harbour-myapp-de.ts \
>> translations/harbour-myapp-pl.ts
>>
>> HEADERS += \
>> src/settings.h
>>
>>  What's missing here?
>>
>>  --
>> Marcin
>>
>>
>> 2014-07-17 10:51 GMT+02:00 Luca Donaggio :
>>
>>   1. No, lupdate is included in the virtual machine used to bild your
>>> app and invoked automatically
>>>  2. Just put your harbour-yourappname-xx.ts files into 'translations'
>>> directory and you're set
>>>  3. Usually I install the RPM in the emulator and run it from command
>>> line after changing LANG env variable
>>>
>>>
>>>  On Thu, Jul 17, 2014 at 10:37 AM, Marcin M. 
>>> wrote:
>>>
I couldn't find the answers to a couple of questions:
  1. Does SailfishOS SDK require external lupdate? If yes, where can the
 command for lupdate be set (as of Mint 17 (Ubuntu 14.04), lupdate-qt5 is
 not provided by any package)
  2. If using sailfishapp_i18n, are the QTranslator steps still needed?
 Should /usr/share/appname/i18n or .../appname/translations be used? If ` -
 '%{_datadir}/%{name}' ` is already in .yaml is anything else needed
 concerning packaging?
  3. What's the recommended way of testing translations in the Emulator?
 setting LANG in the environmental variables?

  PS. There's no documentation concerning this on the sailfishos.org
 website.
 --
 Marcin

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

>>>
>>>
>>>
>>> --
>>> Luca Donaggio
>>>
>>> ___
>>> 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] Fwd: QtCreator issues

2014-07-17 Thread Juha Kallioinen

On 17.07.2014 00:41, Stijn Devriendt wrote:

Hi Juha,

Been debugging a bit more until I got this:
Breakpoint 1, 0x7fffeb54bd40 in QTime::QTime(int, int, int, 
int)@plt () from /usr/lib64/libkdecore.so.5

(gdb) bt
#0  0x7fffeb54bd40 in QTime::QTime(int, int, int, int)@plt () from 
/usr/lib64/libkdecore.so.5

#1  0x77de9be6 in call_init () from /lib64/ld-linux-x86-64.so.2
#2  0x77de9cca in _dl_init_internal () from 
/lib64/ld-linux-x86-64.so.2
#3  0x77dedd99 in dl_open_worker () from 
/lib64/ld-linux-x86-64.so.2

...

Hi thanks for debugging,

I can't figure out the reason yet, just a quick report.

I can reproduce the failure here in Sabayon KDE 14.07 version, but not 
in the GNOME version.


I could not reproduce it in Kubuntu 14.04 (also uses KDE, version 4.13.2).

One system library caught my eye, Sabayon loads libpng16.so.16 and 
Kubuntu loads libpng12.so.0, although I'm sure I've built Qt so that it 
would use the qt plugin and not system libpng. But maybe it doesn't 
affect that code path yet.


Best regards,
 Juha

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

Re: [SailfishDevel] Translating apps for SailfishOS

2014-07-17 Thread Andrey Kozhevnikov

you can login [1] to Mer VM and do what you want manually

[1] https://sailfishos.org/develop-faq.html

17.07.2014 15:38, Marcin M. ?:

And how can I run the mer's lupdate & lrelease from terminal?

--
Marcin


2014-07-17 11:36 GMT+02:00 Marcin M. >:


Thanks

1. The problem is that Tools/External/lupdate doesn't do anything.
I created translations/harbour-myapp-pl.ts, ran
Tools/External/lupdate and the pl translation file didn't change.

My .pro looks like that:

TARGET = harbour-myapp

CONFIG += sailfishapp

SOURCES += src/harbour-myapp.cpp \
src/settings.cpp

OTHER_FILES += qml/harbour-myapp.qml \
qml/cover/CoverPage.qml \
rpm/harbour-myapp.changes.in  \
rpm/harbour-myapp.spec \
rpm/harbour-myapp.yaml \
harbour-myapp.desktop \
qml/pages/SettingsPage.qml \
qml/pages/MainPage.qml \
qml/pages/FontPickerDialog.qml \
qml/pages/WelcomeDialog.qml \
harbour-myapp.png \
translations/harbour-myapp-de.ts \
translations/harbour-myapp-pl.ts
CONFIG += sailfishapp_i18n
TRANSLATIONS += translations/harbour-myapp-de.ts \
translations/harbour-myapp-pl.ts

HEADERS += \
src/settings.h

What's missing here?

--
Marcin


2014-07-17 10:51 GMT+02:00 Luca Donaggio mailto:donag...@gmail.com>>:

1. No, lupdate is included in the virtual machine used to bild
your app and invoked automatically
2. Just put your harbour-yourappname-xx.ts files into
'translations' directory and you're set
3. Usually I install the RPM in the emulator and run it from
command line after changing LANG env variable


On Thu, Jul 17, 2014 at 10:37 AM, Marcin M.
mailto:marmistrz...@gmail.com>> wrote:

I couldn't find the answers to a couple of questions:
1. Does SailfishOS SDK require external lupdate? If yes,
where can the command for lupdate be set (as of Mint 17
(Ubuntu 14.04), lupdate-qt5 is not provided by any package)
2. If using sailfishapp_i18n, are the QTranslator steps
still needed? Should /usr/share/appname/i18n or
.../appname/translations be used? If ` -
'%{_datadir}/%{name}' ` is already in .yaml is anything
else needed concerning packaging?
3. What's the recommended way of testing translations in
the Emulator? setting LANG in the environmental variables?

PS. There's no documentation concerning this on the
sailfishos.org  website.
--
Marcin

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





-- 
Luca Donaggio


___
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] Translating apps for SailfishOS

2014-07-17 Thread Marcin M.
And how can I run the mer's lupdate & lrelease from terminal?

--
Marcin


2014-07-17 11:36 GMT+02:00 Marcin M. :

> Thanks
>
> 1. The problem is that Tools/External/lupdate doesn't do anything. I
> created translations/harbour-myapp-pl.ts, ran Tools/External/lupdate and
> the pl translation file didn't change.
>
> My .pro looks like that:
>
> TARGET = harbour-myapp
>
> CONFIG += sailfishapp
>
> SOURCES += src/harbour-myapp.cpp \
> src/settings.cpp
>
> OTHER_FILES += qml/harbour-myapp.qml \
> qml/cover/CoverPage.qml \
> rpm/harbour-myapp.changes.in \
> rpm/harbour-myapp.spec \
> rpm/harbour-myapp.yaml \
> harbour-myapp.desktop \
> qml/pages/SettingsPage.qml \
> qml/pages/MainPage.qml \
> qml/pages/FontPickerDialog.qml \
> qml/pages/WelcomeDialog.qml \
> harbour-myapp.png \
> translations/harbour-myapp-de.ts \
> translations/harbour-myapp-pl.ts
> CONFIG += sailfishapp_i18n
> TRANSLATIONS += translations/harbour-myapp-de.ts \
> translations/harbour-myapp-pl.ts
>
> HEADERS += \
> src/settings.h
>
> What's missing here?
>
> --
> Marcin
>
>
> 2014-07-17 10:51 GMT+02:00 Luca Donaggio :
>
> 1. No, lupdate is included in the virtual machine used to bild your app
>> and invoked automatically
>> 2. Just put your harbour-yourappname-xx.ts files into 'translations'
>> directory and you're set
>> 3. Usually I install the RPM in the emulator and run it from command line
>> after changing LANG env variable
>>
>>
>> On Thu, Jul 17, 2014 at 10:37 AM, Marcin M. 
>> wrote:
>>
>>> I couldn't find the answers to a couple of questions:
>>> 1. Does SailfishOS SDK require external lupdate? If yes, where can the
>>> command for lupdate be set (as of Mint 17 (Ubuntu 14.04), lupdate-qt5 is
>>> not provided by any package)
>>> 2. If using sailfishapp_i18n, are the QTranslator steps still needed?
>>> Should /usr/share/appname/i18n or .../appname/translations be used? If ` -
>>> '%{_datadir}/%{name}' ` is already in .yaml is anything else needed
>>> concerning packaging?
>>> 3. What's the recommended way of testing translations in the Emulator?
>>> setting LANG in the environmental variables?
>>>
>>> PS. There's no documentation concerning this on the sailfishos.org
>>> website.
>>> --
>>> Marcin
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to
>>> devel-unsubscr...@lists.sailfishos.org
>>>
>>
>>
>>
>> --
>> Luca Donaggio
>>
>> ___
>> 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] Translating apps for SailfishOS

2014-07-17 Thread Marcin M.
Thanks

1. The problem is that Tools/External/lupdate doesn't do anything. I
created translations/harbour-myapp-pl.ts, ran Tools/External/lupdate and
the pl translation file didn't change.

My .pro looks like that:

TARGET = harbour-myapp

CONFIG += sailfishapp

SOURCES += src/harbour-myapp.cpp \
src/settings.cpp

OTHER_FILES += qml/harbour-myapp.qml \
qml/cover/CoverPage.qml \
rpm/harbour-myapp.changes.in \
rpm/harbour-myapp.spec \
rpm/harbour-myapp.yaml \
harbour-myapp.desktop \
qml/pages/SettingsPage.qml \
qml/pages/MainPage.qml \
qml/pages/FontPickerDialog.qml \
qml/pages/WelcomeDialog.qml \
harbour-myapp.png \
translations/harbour-myapp-de.ts \
translations/harbour-myapp-pl.ts
CONFIG += sailfishapp_i18n
TRANSLATIONS += translations/harbour-myapp-de.ts \
translations/harbour-myapp-pl.ts

HEADERS += \
src/settings.h

What's missing here?

--
Marcin


2014-07-17 10:51 GMT+02:00 Luca Donaggio :

> 1. No, lupdate is included in the virtual machine used to bild your app
> and invoked automatically
> 2. Just put your harbour-yourappname-xx.ts files into 'translations'
> directory and you're set
> 3. Usually I install the RPM in the emulator and run it from command line
> after changing LANG env variable
>
>
> On Thu, Jul 17, 2014 at 10:37 AM, Marcin M. 
> wrote:
>
>> I couldn't find the answers to a couple of questions:
>> 1. Does SailfishOS SDK require external lupdate? If yes, where can the
>> command for lupdate be set (as of Mint 17 (Ubuntu 14.04), lupdate-qt5 is
>> not provided by any package)
>> 2. If using sailfishapp_i18n, are the QTranslator steps still needed?
>> Should /usr/share/appname/i18n or .../appname/translations be used? If ` -
>> '%{_datadir}/%{name}' ` is already in .yaml is anything else needed
>> concerning packaging?
>> 3. What's the recommended way of testing translations in the Emulator?
>> setting LANG in the environmental variables?
>>
>> PS. There's no documentation concerning this on the sailfishos.org
>> website.
>> --
>> Marcin
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to
>> devel-unsubscr...@lists.sailfishos.org
>>
>
>
>
> --
> Luca Donaggio
>
> ___
> 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] Translating apps for SailfishOS

2014-07-17 Thread Luca Donaggio
1. No, lupdate is included in the virtual machine used to bild your app and
invoked automatically
2. Just put your harbour-yourappname-xx.ts files into 'translations'
directory and you're set
3. Usually I install the RPM in the emulator and run it from command line
after changing LANG env variable


On Thu, Jul 17, 2014 at 10:37 AM, Marcin M.  wrote:

> I couldn't find the answers to a couple of questions:
> 1. Does SailfishOS SDK require external lupdate? If yes, where can the
> command for lupdate be set (as of Mint 17 (Ubuntu 14.04), lupdate-qt5 is
> not provided by any package)
> 2. If using sailfishapp_i18n, are the QTranslator steps still needed?
> Should /usr/share/appname/i18n or .../appname/translations be used? If ` -
> '%{_datadir}/%{name}' ` is already in .yaml is anything else needed
> concerning packaging?
> 3. What's the recommended way of testing translations in the Emulator?
> setting LANG in the environmental variables?
>
> PS. There's no documentation concerning this on the sailfishos.org
> website.
> --
> Marcin
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
>



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

[SailfishDevel] Translating apps for SailfishOS

2014-07-17 Thread Marcin M.
I couldn't find the answers to a couple of questions:
1. Does SailfishOS SDK require external lupdate? If yes, where can the
command for lupdate be set (as of Mint 17 (Ubuntu 14.04), lupdate-qt5 is
not provided by any package)
2. If using sailfishapp_i18n, are the QTranslator steps still needed?
Should /usr/share/appname/i18n or .../appname/translations be used? If ` -
'%{_datadir}/%{name}' ` is already in .yaml is anything else needed
concerning packaging?
3. What's the recommended way of testing translations in the Emulator?
setting LANG in the environmental variables?

PS. There's no documentation concerning this on the sailfishos.org website.
--
Marcin
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Installing powertop failed - Failed to obtain authentification

2014-07-17 Thread Andrey Kozhevnikov

ssu flavour sales <- in terminal

and do not touch SSU switch in devmode.

17.07.2014 00:26, Steffen Förster ?:

Hi
I have to install powertop on my Jolla (my app was rejected).
The install explanation on 
https://together.jolla.com/question/13243/my-app-got-rejected-to-store-because-of-high-power-consumption-how-to-debug-problems/#13247 failed 
on my Jolla.

I should execute these three steps:
$ ssu ar mer-tools
$ pkcon refresh
$ pkcon install powertop
||--||
||Step 2 failed with following output: ||

||Refreshing cache||
||Waiting in queue||
||Waiting for authentication||
||Fatal error: Failed to obtain authentification ||

||Step 3 failed with ||following output: 

||Command failed: this tool could not find any available package: 
could not find powertop||


||--||

||Any suggestions? (Info: wifi is connected, developer mode is active)||

||Thanks,||
||Steffen||
||
||


___
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] A welcome dialog and pageStack's operation in progress.

2014-07-17 Thread Marcin M.
I did a maybe less dirty workaround yesterday:

function openWelcomeDialog()
{
console.log("working!")
if (status == PageStatus.Active)
{
mainPage.statusChanged.disconnect(openWelcomeDialog)
var component = Qt.createComponent("WelcomeDialog.qml")
var popup = component.createObject(mainPage)
popup.open()
}
}

Component.onCompleted: mainPage.statusChanged.connect(openWelcomeDialog)

This way The check will be done only 4 times in my case and not each time
something happens with the Page.
Note, that queuing would be a great idea. In my case the busy check was
false (pageStack wasn't busy) but a while after it was and Dialog couldn't
be pushed.

--
Marcin


2014-07-17 0:50 GMT+02:00 Matthew Vogt :

> Yes, fair point.
>
> IIRC, we decided there weren't enough motivating examples to make it worth
> adding action-queueing behaviour to the PageStack.  If people keep hitting
> this problem, though, it could be worth revisiting.
>
> That said, working around the problem is usually simple, and making the
> PageStack support more complicated API patterns could lead users to get
> themselves into deeper trouble, that's harder to diagnose and fix :-)
>
> Matt
> 
> From: devel-boun...@lists.sailfishos.org [
> devel-boun...@lists.sailfishos.org] on behalf of J-P Nurmi [
> jpnu...@gmail.com]
> Sent: Thursday, July 17, 2014 7:45 AM
> To: Sailfish OS Developers
> Subject: Re: [SailfishDevel] A welcome dialog and pageStack's operation in
>  progress.
>
> On Wed, Jul 16, 2014 at 11:25 PM, Matthew Vogt 
> wrote:
> >
> > Hi, 'Page.status' is the correct property to watch for avoiding this
> problem.
> >
> > Here is an example of what you could do:
> >
> > import QtQuick 2.0
> > import Sailfish.Silica 1.0
> >
> > ApplicationWindow {
> >
> > initialPage: Component {
> > Page {
> > anchors.fill: parent
> >
> > Label {
> > anchors.centerIn: parent
> > text: 'Main page'
> > }
> >
> > property bool showSplash: true
> > onStatusChanged: {
> > if (status == PageStatus.Active &&
> showSplash) {
> > showSplash = false
> > pageStack.push(splashPage)
> > }
> > }
> > }
> > }
> >
> > Component {
> > id: splashPage
> >
> > Page {
> > Label {
> > anchors.centerIn: parent
> > text: 'Splash page'
> > }
> > }
> > }
> > }
> >
> > Thanks,
> > Matt
>
>
> Hi Matt,
>
> Notice that essentially the same problem occurs when a dialog/page is
> triggered by an external event. User navigates the UI meanwhile eg. a
> network event triggers a dialog => PageStack is busy so it just bails
> out and user misses the dialog. As a workaround, waiting until
> PageStack is no longer busy gets pretty ugly.
>
> --
> J-P Nurmi
> ___
> 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] Installing powertop failed - Failed to obtain authentification

2014-07-17 Thread Steffen Förster

Hi

I have to install powertop on my Jolla (my app was rejected).

The install explanation on 
https://together.jolla.com/question/13243/my-app-got-rejected-to-store-because-of-high-power-consumption-how-to-debug-problems/#13247 
failed on my Jolla.


I should execute these three steps:

$ ssu ar mer-tools
$ pkcon refresh
$ pkcon install powertop

--

Step 2 failed with following output:

Refreshing cache
Waiting in queue
Waiting for authentication
Fatal error: Failed to obtain authentification

Step 3 failed with following output:

Command failed: this tool could not find any available package: could 
not find powertop


--

Any suggestions? (Info: wifi is connected, developer mode is active)

Thanks,
Steffen



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