forked from Elara6331/itd
		
	Switch to private bus connection
This commit is contained in:
		
							
								
								
									
										10
									
								
								notifs.go
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								notifs.go
									
									
									
									
									
								
							| @@ -30,7 +30,15 @@ import ( | |||||||
|  |  | ||||||
| func initNotifRelay(dev *infinitime.Device) error { | func initNotifRelay(dev *infinitime.Device) error { | ||||||
| 	// Connect to dbus session bus | 	// Connect to dbus session bus | ||||||
| 	bus, err := dbus.SessionBus() | 	bus, err := dbus.SessionBusPrivate() | ||||||
|  | 	if err != nil { | ||||||
|  | 		return err | ||||||
|  | 	} | ||||||
|  | 	err = bus.Auth(nil) | ||||||
|  | 	if err != nil { | ||||||
|  | 		return err | ||||||
|  | 	} | ||||||
|  | 	err = bus.Hello() | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return err | 		return err | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user