Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions system.mod/system.linux.bmx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Strict

Import "driver.bmx"
Expand All @@ -19,6 +18,8 @@ Function bbMoveMouse(x,y)
Function bbSystemDisplay()
Function bbSystemEventHandler( callback(xevent:Byte Ptr) )

Function bbSystemNotify( text$,serious )

Function bbSystemPostSyncOp( syncOp( syncInfo:Object,asyncRet ),syncInfo:Object,asyncRet )
Function bbSystemStartAsyncOp( asyncOp( asyncInfo ),asyncInfo,syncOp( syncInfo:Object,asyncRet ),syncInfo:Object )

Expand Down Expand Up @@ -61,7 +62,8 @@ Type TLinuxSystemDriver Extends TSystemDriver
End Method

Method Notify( text$,serious )
WriteStdout text+"~r~n"
system_ "xmessage -center ~q"+text+"~q"
' WriteStdout text+"~r~n"
End Method

Method Confirm( text$,serious )
Expand Down
11 changes: 11 additions & 0 deletions system.mod/system.linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,14 @@ int bbSystemDesktopHertz(){
XFree( xmodes );
return sz;
}


void bbSystemNotify( BBString *text,int serious ){
char cmd[1024];
sprintf(cmd, "xmessage -center \"%s\"", text);
if(fork()==0){
close(1); close(2);
system(cmd);
exit(0);
}
}