When the usb device is detected we are take an action in this example we are organizing the files in the usb and send a signal to be listened by the notification daemon
| 17 | // and send a signal to be listened by the notification daemon |
| 18 | |
| 19 | type Notification struct { |
| 20 | AppName string |
| 21 | ReplacesID uint32 |
| 22 | AppIcon string |
| 23 | Summary string |
| 24 | Body string |
| 25 | Actions []string |
| 26 | Hints map[string]dbus.Variant |
| 27 | ExpireTimeout int32 |
| 28 | } |
| 29 | |
| 30 | func NewDefaultNotification(deviceName string) Notification { |
| 31 | hints := map[string]dbus.Variant{ |
nothing calls this directly
no outgoing calls
no test coverage detected