Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GWRon opened this issue Feb 12, 2017 · 2 comments
Open

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

GWRon opened this issue Feb 12, 2017 · 2 comments

Comments

@GWRon
Copy link
Contributor

GWRon commented Feb 12, 2017

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.

@GWRon
Copy link
Contributor Author

GWRon commented Feb 21, 2018

There is a pull request waiting for this issue.
Why is this not accepted? because of a external program not available on all systems? (aka relying on "X").

@GWRon
Copy link
Contributor Author

GWRon commented Nov 23, 2018

bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant