Skip to content

brl.system: Notify(), Confirm(), ... not opening dialogues on Linux #13

@GWRon

Description

@GWRon

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 Method

with

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

and 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions