[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();
|
auto system = CalamaresUtils::System::instance();
|
||||||
Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage();
|
Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage();
|
||||||
|
|
||||||
QStringList command;
|
QStringList command( {
|
||||||
|
"sudo", "-E", "-H", "-u", gs->value("username").toString(),
|
||||||
if ( !system->doChroot() )
|
m_lnfPath, "-platform", "minimal", "--resetLayout", "--apply", m_id } );
|
||||||
command << "sudo" << "-E" << "-H" << "-u" << gs->value("username").toString();
|
|
||||||
|
|
||||||
command << m_lnfPath << "-platform" << "minimal" << "--resetLayout" << "--apply" << m_id;
|
|
||||||
|
|
||||||
int r = system->targetEnvCall( command );
|
int r = system->targetEnvCall( command );
|
||||||
if (r)
|
if (r)
|
||||||
|
Loading…
Reference in New Issue
Block a user