<div dir="ltr"><div><div><div><div>Hi,<br><br></div>thanks for reply!<br><br></div>I did a quick test on the emulator, it does work without invoker, but the app just uses system locale if launched via invoker. I think it has something to do with Qt libraries being already preloaded when using booster.<br><br></div><div>I guess my question is wrong in its formulation. Actually issuing the following command:<br><br></div><div><span style="font-family:monospace,monospace">$ LANG=ru_RU invoker --type=silica-qt5 appbin</span><br><br></div><div>does not change the app locale, it behaves as if there were no LANG=ru_RU at all. So does QLocale::setDefault().<br><br>I think my question should be: "Is there any way to change app locale if using invoker?" <br><br>Motivation for that is to allow an end-user to use application in a language that may differ from the one of OS. I do load in-app strings via Qt translation system but formatting facilities, remorse popups and dialog headers remain in OS language which brings a bit of incosistency to app look and feel. This inconsistency is solved by changing locale on per-application basis but apparently invoker seems to be an obstacle for that.<br><br></div>Cheers<br></div>Dmitriy Purgin<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-22 17:44 GMT+06:00 Pekka Vuorela <span dir="ltr"><<a href="mailto:pekka.vuorela@jolla.com" target="_blank">pekka.vuorela@jolla.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">ke, 2015-04-22 kello 14:23 +0600, Dmitriy Purgin kirjoitti:<br>
> Hi all,<br>
><br>
><br>
> I'm trying to make a .desktop file that launches an application with<br>
> customized LANG environment variable. I came up with the<br>
> following .desktop file (irrelevant entries removed):<br>
><br>
><br>
> [Desktop Entry]<br>
> Type=Application<br>
> X-Nemo-Application-Type=no-invoker<br>
> Exec=app-launcher.sh<br>
<br>
</span>Alternatively, would it be enough doing setenv() as first thing in the<br>
application side?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
</div></div></blockquote></div><br></div>