mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Do not strip quotes for exec or bind commands
Leave quotes intact for cmd_exec, cmd_exec_always, cmd_bindcode, and cmd_bindsym
This commit is contained in:
		
							parent
							
								
									bebe7dea8c
								
							
						
					
					
						commit
						87a70b3591
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -391,7 +391,10 @@ struct cmd_results *config_command(char *exec) {
 | 
			
		|||
	// Var replacement, for all but first argument of set
 | 
			
		||||
	// TODO commands
 | 
			
		||||
	for (i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) {
 | 
			
		||||
		if (*argv[i] == '\"' || *argv[i] == '\'') {
 | 
			
		||||
		if (handler->handle != cmd_exec && handler->handle != cmd_exec_always
 | 
			
		||||
				&& handler->handle != cmd_bindsym
 | 
			
		||||
				&& handler->handle != cmd_bindcode
 | 
			
		||||
				&& (*argv[i] == '\"' || *argv[i] == '\'')) {
 | 
			
		||||
			strip_quotes(argv[i]);
 | 
			
		||||
		}
 | 
			
		||||
		argv[i] = do_var_replacement(argv[i]);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue