diff --git a/GBM/Forms/frmMain.vb b/GBM/Forms/frmMain.vb index 28baae0..9e255ef 100644 --- a/GBM/Forms/frmMain.vb +++ b/GBM/Forms/frmMain.vb @@ -1226,6 +1226,7 @@ Public Class frmMain Public Sub UpdateLog(sLogUpdate As String, Optional bTrayUpdate As Boolean = True, Optional objIcon As System.Windows.Forms.ToolTipIcon = ToolTipIcon.Info, Optional bTimeStamp As Boolean = True) Handles oBackup.UpdateLog, oRestore.UpdateLog Dim prsNotify As Process + Dim bNotifyFailed As Boolean Dim sUrgency As String Dim sIconLocation As String Dim sNotifyArgs As String @@ -1292,13 +1293,19 @@ Public Class frmMain prsNotify.StartInfo.RedirectStandardOutput = True prsNotify.StartInfo.CreateNoWindow = True prsNotify.Start() + prsNotify.WaitForExit() + Select Case prsNotify.ExitCode + Case 0 + bNotifyFailed = False + Case Else + bNotifyFailed = True + End Select Catch - 'Show default notification style - gMonTray.BalloonTipText = sLogUpdate - gMonTray.BalloonTipIcon = objIcon - gMonTray.ShowBalloonTip(10000) + bNotifyFailed = True End Try - Else + End If + + If Not mgrCommon.IsUnix Or bNotifyFailed Then gMonTray.BalloonTipText = sLogUpdate gMonTray.BalloonTipIcon = objIcon gMonTray.ShowBalloonTip(10000) diff --git a/deb-package/gbm/DEBIAN/control b/deb-package/gbm/DEBIAN/control index 30abda0..b34cac0 100644 --- a/deb-package/gbm/DEBIAN/control +++ b/deb-package/gbm/DEBIAN/control @@ -5,5 +5,6 @@ Priority: optional Version: 1.0.8 Homepage: https://mikemaximus.github.io/gbm-web/ Bugs: https://github.com/MikeMaximus/gbm/issues -Depends: mono-vbnc, libsqlite3-0, p7zip-full, libnotify-bin +Depends: mono-vbnc, libsqlite3-0, p7zip-full +Recommends: libnotify-bin Description: Automatically backup your saved games! diff --git a/gbm.sh b/gbm.sh index 8a751d7..1ca9e26 100755 --- a/gbm.sh +++ b/gbm.sh @@ -1,6 +1,6 @@ #!/bin/sh -e #check for all dependencies -for prog in mono readlink df 7za notify-send;do +for prog in mono readlink df 7za;do [ -n "`whereis -b ${prog} | cut -sd' ' -f2`" ] || (echo "Please install ${prog}" && exit 1); done for lib in libsqlite3;do