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()); |                     env.append(&mut session.env.clone()); | ||||||
| 
 | 
 | ||||||
|                     // Activate the generation before handing control back to greetd
 |                     // Activate the generation before handing control back to greetd
 | ||||||
|                     Command::new(format!( |                     // Command::new(format!(
 | ||||||
|                         "su - -c \"{}/activate\" {}", |                     //     "su - -c \"{}/activate\" {}",
 | ||||||
|                         session.generation, user.name |                     //     session.generation, user.name
 | ||||||
|                     )) |                     // ))
 | ||||||
|                     .status() |                     Command::new("su") | ||||||
|                     .expect("Failed to activate environment"); |                         .args([ | ||||||
|  |                             "-", | ||||||
|  |                             "-c", | ||||||
|  |                             &format!("{}/activate", session.generation), | ||||||
|  |                             &user.name, | ||||||
|  |                         ]) | ||||||
|  |                         .status() | ||||||
|  |                         .expect("Failed to activate environment"); | ||||||
| 
 | 
 | ||||||
|                     Request::StartSession { cmd, env }.write_to(&mut stream)?; |                     Request::StartSession { cmd, env }.write_to(&mut stream)?; | ||||||
|                 } |                 } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jan-Bulthuis
						Jan-Bulthuis