From 3bdfa63a799311d391098e4352245860a5766c81 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sun, 3 Dec 2017 10:38:32 -0500 Subject: [PATCH] [plasmalnf] Preserve environment, so that DISPLAY gets to the tool --- src/modules/plasmalnf/PlasmaLnfJob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/plasmalnf/PlasmaLnfJob.cpp b/src/modules/plasmalnf/PlasmaLnfJob.cpp index 6c97e85e6..a6df3e976 100644 --- a/src/modules/plasmalnf/PlasmaLnfJob.cpp +++ b/src/modules/plasmalnf/PlasmaLnfJob.cpp @@ -83,7 +83,7 @@ PlasmaLnfJob::exec() else { 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)