mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	WindowServer: Move configuration file into /etc/WindowServer
This is in preparation for running WindowServer as a separate user.
This commit is contained in:
		
							parent
							
								
									1176167944
								
							
						
					
					
						commit
						0415db30c6
					
				
					 5 changed files with 6 additions and 9 deletions
				
			
		|  | @ -102,7 +102,7 @@ NonnullRefPtr<Cursor> WindowManager::get_cursor(const String& name) | |||
| 
 | ||||
| void WindowManager::reload_config(bool set_screen) | ||||
| { | ||||
|     m_wm_config = Core::ConfigFile::get_for_app("WindowManager"); | ||||
|     m_wm_config = Core::ConfigFile::open("/etc/WindowServer/WindowServer.ini"); | ||||
| 
 | ||||
|     m_double_click_speed = m_wm_config->read_num_entry("Input", "DoubleClickSpeed", 250); | ||||
| 
 | ||||
|  | @ -1241,7 +1241,7 @@ void WindowManager::update_theme(String theme_path, String theme_name) | |||
|         } | ||||
|         return IterationDecision::Continue; | ||||
|     }); | ||||
|     auto wm_config = Core::ConfigFile::get_for_app("WindowManager"); | ||||
|     auto wm_config = Core::ConfigFile::open("/etc/WindowServer/WindowServer.ini"); | ||||
|     wm_config->write_entry("Theme", "Name", theme_name); | ||||
|     wm_config->sync(); | ||||
|     invalidate(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling