never show empty display server, use x11 instead, #3541
This commit is contained in:
		
							parent
							
								
									6859bfae98
								
							
						
					
					
						commit
						d1e0ae7815
					
				| @ -81,8 +81,10 @@ fn get_display_server_of_session(session: &str) -> String { | |||||||
|             display_server = sestype; |             display_server = sestype; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     // If the session is not a tty, then just return the type as usual
 |     if display_server == "" { | ||||||
|     display_server |         display_server = "x11".to_owned(); | ||||||
|  |     } | ||||||
|  |     display_server.to_lowercase() | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| pub fn get_values_of_seat0(indices: Vec<usize>) -> Vec<String> { | pub fn get_values_of_seat0(indices: Vec<usize>) -> Vec<String> { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user