mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Linux: Fix calibre failing to start on systems with no DBUS session bus
This commit is contained in:
		
							parent
							
								
									44b1f8fe93
								
							
						
					
					
						commit
						a8f697a762
					
				@ -167,7 +167,12 @@ class AppleNotifier(Notifier):
 | 
				
			|||||||
def get_notifier(systray=None):
 | 
					def get_notifier(systray=None):
 | 
				
			||||||
    ans = None
 | 
					    ans = None
 | 
				
			||||||
    if islinux:
 | 
					    if islinux:
 | 
				
			||||||
 | 
					        try:
 | 
				
			||||||
            ans = get_dbus_notifier()
 | 
					            ans = get_dbus_notifier()
 | 
				
			||||||
 | 
					        except Exception:
 | 
				
			||||||
 | 
					            import traceback
 | 
				
			||||||
 | 
					            traceback.print_exc()
 | 
				
			||||||
 | 
					            ans = None
 | 
				
			||||||
    elif isosx:
 | 
					    elif isosx:
 | 
				
			||||||
        if get_osx_version() >= (10, 8, 0):
 | 
					        if get_osx_version() >= (10, 8, 0):
 | 
				
			||||||
            ans = AppleNotifier()
 | 
					            ans = AppleNotifier()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user