Hi, thanks for reply!
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. I guess my question is wrong in its formulation. Actually issuing the following command: $ LANG=ru_RU invoker --type=silica-qt5 appbin does not change the app locale, it behaves as if there were no LANG=ru_RU at all. So does QLocale::setDefault(). I think my question should be: "Is there any way to change app locale if using invoker?" 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. Cheers Dmitriy Purgin 2015-04-22 17:44 GMT+06:00 Pekka Vuorela <pekka.vuor...@jolla.com>: > ke, 2015-04-22 kello 14:23 +0600, Dmitriy Purgin kirjoitti: > > Hi all, > > > > > > I'm trying to make a .desktop file that launches an application with > > customized LANG environment variable. I came up with the > > following .desktop file (irrelevant entries removed): > > > > > > [Desktop Entry] > > Type=Application > > X-Nemo-Application-Type=no-invoker > > Exec=app-launcher.sh > > Alternatively, would it be enough doing setenv() as first thing in the > application side? > > > _______________________________________________ > 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