I also just tried commenting out that line, and `I still get the same result?
Weird.
Here is my code now:
[code]// CHECK TO SEE IF XOJO IS RUNNING
Dim sh As New Shell
sh.execute “lsappinfo list | grep -v grep | grep bundleID | grep com.xojo.xojo | wc -l”
Dim shOutput As String = Sh.ReadAll
If shOutput = “0” Then
// DISPLAY A USER NOTIFICATION
m = New Module1.MyNotificationCenter
m.DeliverNotification(Module1.NSNotifications("Test App:","Xojo is not currently running."))
Else
// DISPLAY A USER NOTIFICATION
m = New Module1.MyNotificationCenter
m.DeliverNotification(Module1.NSNotifications("Test App:","Xojo is running."))
[code] Dim shOutput As String = Sh.Result
If shOutput = “0” Then
// DISPLAY A USER NOTIFICATION
m = New Module1.MyNotificationCenter
m.DeliverNotification(Module1.NSNotifications("Test App:","Xojo is not currently running."))
Else
// DISPLAY A USER NOTIFICATION
m = New Module1.MyNotificationCenter
m.DeliverNotification(Module1.NSNotifications("Test App:","Xojo is running."))
[quote=301526:@Richard Summers]I also just tried commenting out that line, and `I still get the same result?
[/quote]
Are you testing this by running it in a debug app in the IDE ?
If so think about what its telling you “Yes the IDE is running”
Ok - here is my code - it should now be identical to yours:
I have closed Xojo and am running the built app, but I still keep getting told that Xojo is running ? This should now be working?
[code]// CHECK TO SEE IF XOJO IS RUNNING
Dim sh As New Shell
sh.execute “lsappinfo list | grep -v grep | grep bundleID | grep com.xojo.xojo | wc -l”
Dim shOutput As String = Sh.Result
If shOutput = “0” Then
// DISPLAY A USER NOTIFICATION
m = New Module1.MyNotificationCenter
m.DeliverNotification(Module1.NSNotifications("Test App:","Xojo is not currently running."))
Else
// DISPLAY A USER NOTIFICATION
m = New Module1.MyNotificationCenter
m.DeliverNotification(Module1.NSNotifications("Test App:","Xojo is running."))