mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Log sway version on startup
This commit is contained in:
		
							parent
							
								
									930f42ae81
								
							
						
					
					
						commit
						eb003689a3
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -102,6 +102,10 @@ int main(int argc, char **argv) {
 | 
			
		|||
		init_log(L_ERROR);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
#if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE
 | 
			
		||||
	sway_log(L_INFO, "Starting sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	if (validate) {
 | 
			
		||||
		bool valid = load_config(config_path);
 | 
			
		||||
		return valid ? 0 : 1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue