Fixed activation command
This commit is contained in:
		
							parent
							
								
									37c7d7c9ff
								
							
						
					
					
						commit
						c7278a910a
					
				| @ -38,12 +38,19 @@ pub fn login( | ||||
|                     env.append(&mut session.env.clone()); | ||||
| 
 | ||||
|                     // Activate the generation before handing control back to greetd
 | ||||
|                     Command::new(format!( | ||||
|                         "su - -c \"{}/activate\" {}", | ||||
|                         session.generation, user.name | ||||
|                     )) | ||||
|                     .status() | ||||
|                     .expect("Failed to activate environment"); | ||||
|                     // Command::new(format!(
 | ||||
|                     //     "su - -c \"{}/activate\" {}",
 | ||||
|                     //     session.generation, user.name
 | ||||
|                     // ))
 | ||||
|                     Command::new("su") | ||||
|                         .args([ | ||||
|                             "-", | ||||
|                             "-c", | ||||
|                             &format!("{}/activate", session.generation), | ||||
|                             &user.name, | ||||
|                         ]) | ||||
|                         .status() | ||||
|                         .expect("Failed to activate environment"); | ||||
| 
 | ||||
|                     Request::StartSession { cmd, env }.write_to(&mut stream)?; | ||||
|                 } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jan-Bulthuis
						Jan-Bulthuis