-
Notifications
You must be signed in to change notification settings - Fork 3
Description
The current implementation of brl.mod/system.mod does not open graphical dialogues on Linux. So when run from a graphical application it only outputs to the console windows. While this behaviour is okay for a console app, this is not very useful for the graphical ones.
To avoid this, one could replace
Method Notify( text$,serious )
WriteStdout text+"~r~n"
End Methodwith
Method Notify( text$,serious )
system_ "xmessage -center ~q"+text+"~q"
End Methodand the likes.
I assume this is ok as long as it is run in an graphical environment. As it already utilizes "X11/..." things I am not sure if this creates trouble.
Also it might be a good thing to utilize:
https://sourceforge.net/projects/tinyfiledialogs/
which is a "small" c-project which wraps calls to "xmessage" (or another available command line tool) so we would not need to take care of what is installed. It also falls back to terminal-output if nothing "graphically" is available.