<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>