mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #284 from gpyh/master
FALLBACK_CONFIG_DIR did not work. Fixed.
This commit is contained in:
		
						commit
						76a3868ce8
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 3.1.0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
project(sway C)
 | 
					project(sway C)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set(FALLBACK_CONFIG_DIR "/etc/sway/")
 | 
					set(FALLBACK_CONFIG_DIR "/etc/sway" CACHE PATH
 | 
				
			||||||
 | 
					  "Fallback config directory defaults to /etc/sway")
 | 
				
			||||||
add_definitions('-DFALLBACK_CONFIG_DIR=\"${FALLBACK_CONFIG_DIR}\"')
 | 
					add_definitions('-DFALLBACK_CONFIG_DIR=\"${FALLBACK_CONFIG_DIR}\"')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set(CMAKE_C_FLAGS "-g")
 | 
					set(CMAKE_C_FLAGS "-g")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -136,7 +136,7 @@ static char *get_config_path(void) {
 | 
				
			||||||
		"$XDG_CONFIG_HOME/sway/config",
 | 
							"$XDG_CONFIG_HOME/sway/config",
 | 
				
			||||||
		"$HOME/.i3/config",
 | 
							"$HOME/.i3/config",
 | 
				
			||||||
		"$XDG_CONFIG_HOME/i3/config",
 | 
							"$XDG_CONFIG_HOME/i3/config",
 | 
				
			||||||
                FALLBACK_CONFIG_DIR "config",
 | 
					                FALLBACK_CONFIG_DIR "/config",
 | 
				
			||||||
		"/etc/i3/config",
 | 
							"/etc/i3/config",
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue