Load libunity in all DEs to set dock icon counter. #956
Before we tried loading and using libunity only in Unity DE.
This commit is contained in:
		
							parent
							
								
									c39bf239ea
								
							
						
					
					
						commit
						296c800b39
					
				
					 1 changed files with 5 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -271,14 +271,12 @@ void start() {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
#ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION
 | 
			
		||||
	if (QString(getenv("XDG_CURRENT_DESKTOP")).toLower().split(':').contains(qstr("unity"))) {
 | 
			
		||||
	QLibrary lib_unity(qstr("unity"), 9, 0);
 | 
			
		||||
	loadLibrary(lib_unity, "unity", 9);
 | 
			
		||||
 | 
			
		||||
	load(lib_unity, "unity_launcher_entry_get_for_desktop_id", unity_launcher_entry_get_for_desktop_id);
 | 
			
		||||
	load(lib_unity, "unity_launcher_entry_set_count", unity_launcher_entry_set_count);
 | 
			
		||||
	load(lib_unity, "unity_launcher_entry_set_count_visible", unity_launcher_entry_set_count_visible);
 | 
			
		||||
	}
 | 
			
		||||
#endif // !TDESKTOP_DISABLE_UNITY_INTEGRATION
 | 
			
		||||
 | 
			
		||||
	if (gtkLoaded) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue