Skip to content

Commit 7d935e6

Browse files
committed
chore(systray): Adjust balloon text and include icons
1 parent 190f7ea commit 7d935e6

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

cmd/fibratus/fibratus.ico

114 KB
Binary file not shown.

cmd/fibratus/fibratus.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include "version.h"
22
#define RT_MANIFEST 24
33

4+
IDI_APP_ICON ICON "fibratus.ico"
5+
46
#define VS_VERSION_INFO 1
57
VS_VERSION_INFO VERSIONINFO
68
FILEVERSION RC_FILE_VERSION

cmd/systray/fibratus-systray.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include "version.h"
22
#define RT_MANIFEST 24
33

4+
IDI_APP_ICON ICON "fibratus.ico"
5+
46
#define VS_VERSION_INFO 1
57
VS_VERSION_INFO VERSIONINFO
68
FILEVERSION RC_FILE_VERSION

cmd/systray/fibratus.ico

114 KB
Binary file not shown.

cmd/systray/main_windows.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ const (
4949
)
5050

5151
var (
52-
className = windows.StringToUTF16Ptr("fibratus")
52+
className = windows.StringToUTF16Ptr("fibratus")
53+
alertTitle = "Malicious Activity Detected"
5354
)
5455

5556
// Msg represents the data exchanged between systray client/server.
@@ -221,13 +222,7 @@ func (s *Systray) handleMessage(m Msg) error {
221222
logrus.Errorf("unable to decode alert: %v", err)
222223
return err
223224
}
224-
text := alert.Text
225-
// the balloon notification fails
226-
// to show up if the text is empty
227-
if text == "" {
228-
text = " "
229-
}
230-
return s.systrayIcon.ShowBalloonNotification(alert.Title, text, s.config.Sound, s.config.QuietMode)
225+
return s.systrayIcon.ShowBalloonNotification(alertTitle, alert.Title, s.config.Sound, s.config.QuietMode)
231226
}
232227
return nil
233228
}

0 commit comments

Comments
 (0)