[plasmalnf] Preserve environment, so that DISPLAY gets to the tool

This commit is contained in:
Adriaan de Groot 2017-12-03 10:38:32 -05:00
parent d3ef6b07d5
commit 3bdfa63a79

View File

@ -83,7 +83,7 @@ PlasmaLnfJob::exec()
else else
{ {
r = system->targetEnvCall( QStringList( r = system->targetEnvCall( QStringList(
{ "sudo", "-u", gs->value("username").toString(), m_lnfPath, "-a", m_id } ) ); { "sudo", "-E", "-u", gs->value("username").toString(), m_lnfPath, "-a", m_id } ) );
} }
if (r) if (r)