mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #2855 from SpeedJack/sysconfdir-fhs-compliant
Make SYSCONFDIR FHS compliant when "prefix" is set
This commit is contained in:
		
						commit
						fa2d2c8559
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -114,7 +114,7 @@ if scdoc.found()
 | 
				
			||||||
	endforeach
 | 
						endforeach
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
add_project_arguments('-DSYSCONFDIR="/@0@/@1@"'.format(prefix, sysconfdir), language : 'c')
 | 
					add_project_arguments('-DSYSCONFDIR="/@0@"'.format(sysconfdir), language : 'c')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
version = get_option('sway-version')
 | 
					version = get_option('sway-version')
 | 
				
			||||||
if version != ''
 | 
					if version != ''
 | 
				
			||||||
| 
						 | 
					@ -157,7 +157,7 @@ subdir('swaynag')
 | 
				
			||||||
subdir('swaylock')
 | 
					subdir('swaylock')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config = configuration_data()
 | 
					config = configuration_data()
 | 
				
			||||||
config.set('sysconfdir', join_paths(prefix, sysconfdir))
 | 
					config.set('sysconfdir', sysconfdir)
 | 
				
			||||||
config.set('datadir', join_paths(prefix, datadir))
 | 
					config.set('datadir', join_paths(prefix, datadir))
 | 
				
			||||||
config.set('prefix', prefix)
 | 
					config.set('prefix', prefix)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue