<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    In Qt Creator: Projects - Run - Run Environment
    <a class="moz-txt-link-freetext" href="http://i.imgur.com/FArKbn2.png">http://i.imgur.com/FArKbn2.png</a><br>
    <br>
    <div class="moz-cite-prefix">22.04.2015 13:23, Dmitriy Purgin пишет:<br>
    </div>
    <blockquote
cite="mid:CA+y33yTKJUtYMTH_SNYgyxNC5g_hx_OpRXz1Bfr94TaVSVd7tA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi all,<br>
            <br>
          </div>
          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):<br>
          <span style="font-family:monospace,monospace"><br>
          </span></div>
        <div><span style="font-family:monospace,monospace">[Desktop
            Entry]<br>
          </span></div>
        <div><span style="font-family:monospace,monospace">Type=Application<br>
          </span></div>
        <div><span style="font-family:monospace,monospace">X-Nemo-Application-Type=no-invoker<br>
          </span></div>
        <div><span style="font-family:monospace,monospace">Exec=app-launcher.sh</span><br>
          <br>
        </div>
        <div>app-launcher.sh is an executable bash script (irrelevant
          statements removed):<br>
          <br>
        </div>
        <div><span style="font-family:monospace,monospace">#!/bin/bash<br>
            <br>
          </span></div>
        <div><span style="font-family:monospace,monospace">LOCALE=ru_RU<br>
          </span></div>
        <div><span style="font-family:monospace,monospace">LANG=$LOCALE
            appbin<br>
          </span></div>
        <div><br>
        </div>
        <div>This all works fine until I use the invoker. I've added
          invoker to launcher script like this:<br>
          <br>
        </div>
        <div><span style="font-family:monospace,monospace">#!/bin/bash<br>
            <br>
          </span></div>
        <div><span style="font-family:monospace,monospace">LOCALE=ru_RU 
            # real code has some checks to detect desired locale<br>
          </span></div>
        <div><span style="font-family:monospace,monospace">LANG=$LOCALE
            invoker --type=silica-qt5 appbin</span><br>
        </div>
        <div><br>
          Now the app starts with specified locale but lipstick shows
          two windows upon tapping on app icon: the first one appears
          immediately upon launch, it shows loading indicator for some
          time, then disappears. The second one is the actual app
          launched by invoker but it is always minimized.<br>
          <br>
        </div>
        <div>I guess there's no way to modify environment in .desktop
          file. <br>
        </div>
        <div><br>
        </div>
        <div>I've also taken a quick look at invoker sources and it
          seems it can't modify the environment for the application to
          be boosted either.<br>
          <br>
        </div>
        <div>Can anyone please guide me if there is a way to do both:
          change application environment and boost it with invoker?<br>
          <br>
        </div>
        <div>Thanks in advance!<br>
          <br>
        </div>
        <div>Cheers<br>
        </div>
        <div>Dmitriy Purgin<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>