[plasmalnf] Needs to run as target user in all cases
This commit is contained in:
parent
ac92d4911d
commit
4e2e55a935
@ -75,12 +75,9 @@ PlasmaLnfJob::exec()
|
||||
auto system = CalamaresUtils::System::instance();
|
||||
Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage();
|
||||
|
||||
QStringList command;
|
||||
|
||||
if ( !system->doChroot() )
|
||||
command << "sudo" << "-E" << "-H" << "-u" << gs->value("username").toString();
|
||||
|
||||
command << m_lnfPath << "-platform" << "minimal" << "--resetLayout" << "--apply" << m_id;
|
||||
QStringList command( {
|
||||
"sudo", "-E", "-H", "-u", gs->value("username").toString(),
|
||||
m_lnfPath, "-platform", "minimal", "--resetLayout", "--apply", m_id } );
|
||||
|
||||
int r = system->targetEnvCall( command );
|
||||
if (r)
|
||||
|
Loading…
Reference in New Issue
Block a user