Commit 0e3da457b5
Unsigned
Layout: unified · split
internal/curd.go +11 −2
| @@ -166,7 +166,12 @@ func CurdOut(data interface{}) { | ||
| 166 | 166 | if len(parts) == 3 { |
| 167 | 167 | // Remove quotes from the message |
| 168 | 168 | message := strings.Trim(parts[2], "\"") |
| 169 | cmd := exec.Command("notify-send", "-i", parts[1], message) | |
| 169 | cmd := exec.Command("notify-send", | |
| 170 | "-a", "Curd", | |
| 171 | "-h", "string:x-canonical-private-synchronous:curd-notification", | |
| 172 | "Curd", | |
| 173 | "-i", parts[1], | |
| 174 | message) | |
| 170 | 175 | err := cmd.Run() |
| 171 | 176 | if err != nil { |
| 172 | 177 | Log(fmt.Sprintf("%v", cmd), logFile) |
| @@ -174,7 +179,11 @@ func CurdOut(data interface{}) { | ||
| 174 | 179 | } |
| 175 | 180 | } |
| 176 | 181 | } else { |
| 177 | cmd := exec.Command("notify-send", dataStr) | |
| 182 | cmd := exec.Command("notify-send", | |
| 183 | "-a", "Curd", | |
| 184 | "-h", "string:x-canonical-private-synchronous:curd-notification", | |
| 185 | "Curd", | |
| 186 | dataStr) | |
| 178 | 187 | err := cmd.Run() |
| 179 | 188 | if err != nil { |
| 180 | 189 | Log(fmt.Sprintf("%v", cmd), logFile) |