Set service name for MPRIS
This commit is contained in:
		
							parent
							
								
									cc7f569c77
								
							
						
					
					
						commit
						c53564cfdc
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -38,6 +38,7 @@ SystemMediaControlsManager::SystemMediaControlsManager(
 | 
				
			||||||
		base::Platform::SystemMediaControls::PlaybackStatus;
 | 
							base::Platform::SystemMediaControls::PlaybackStatus;
 | 
				
			||||||
	using Command = base::Platform::SystemMediaControls::Command;
 | 
						using Command = base::Platform::SystemMediaControls::Command;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_controls->setServiceName(qsl("org.mpris.MediaPlayer2.tdesktop"));
 | 
				
			||||||
	_controls->setApplicationName(AppName.utf16());
 | 
						_controls->setApplicationName(AppName.utf16());
 | 
				
			||||||
	const auto inited = _controls->init(controller->widget());
 | 
						const auto inited = _controls->init(controller->widget());
 | 
				
			||||||
	if (!inited) {
 | 
						if (!inited) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +1 @@
 | 
				
			||||||
Subproject commit b721f4d1302c5119d59ab35ddfd5abb90fab42ed
 | 
					Subproject commit 9cf6edbb6784b734946c09a563845264b76cfaaa
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue