XDG_SESSION_TYPE as final backup
This commit is contained in:
		
							parent
							
								
									b387bc1038
								
							
						
					
					
						commit
						cc482c589c
					
				| @ -74,7 +74,7 @@ pub fn get_display_server() -> String { | ||||
|         } | ||||
|     } | ||||
|     if session.is_empty() { | ||||
|         "".to_owned() | ||||
|         std::env::var("XDG_SESSION_TYPE").unwrap_or("x11".to_owned()) | ||||
|     } else { | ||||
|         get_display_server_of_session(&session) | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user