mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix PATH setenv() in exec_always
This commit is contained in:
		
							parent
							
								
									c96ac2ff2a
								
							
						
					
					
						commit
						1daf69477e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -82,7 +82,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			// Append /usr/lib/sway to PATH
 | 
								// Append /usr/lib/sway to PATH
 | 
				
			||||||
			strcat(path, extra_path);
 | 
								strcat(path, extra_path);
 | 
				
			||||||
			if (!setenv("PATH", path, 1)) {
 | 
								if (setenv("PATH", path, 1) == -1) {
 | 
				
			||||||
				free(path);
 | 
									free(path);
 | 
				
			||||||
				wlr_log(L_ERROR, "exec_always: Unable to set PATH");
 | 
									wlr_log(L_ERROR, "exec_always: Unable to set PATH");
 | 
				
			||||||
				exit(EXIT_FAILURE);
 | 
									exit(EXIT_FAILURE);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue