Re: eugtk history
- Posted by petelomax Aug 21, 2015
- 2464 views
This fix works for me, EXCEPT, I'm getting a console window popping up with this message:
FIXME Windows GtkEngine.e line 146...151
What is that?
constant os_info = os:uname() localhost = "127.0.0.1", ifdef UNIX then export constant os_architecture = os_info[5], -- e.g: x86_64 os_shell = getenv("SHELL"), -- e.g: /bin/bash host_addr = inet_address() end ifdef ifdef WINDOWS then -- FIXME display("FIXME Windows GtkEngine.e line 146..151") -- *** here be that message! *** export constant os_architecture = "unknown", os_shell = "cmd.com", host_addr = localhost end ifdef object os_term = getenv("TERM") if atom(os_term) then os_term = "none" end if ifdef WINDOWS then os_term = "CMD.COM" end ifdef
Clearly a few of those values are untested on windows.
In the first place std/os.e/uname() returns wildly different things for Linux and Windows...
I might suggest os_shell could be set from getenv("COMSPEC") but I ain't offering to test that idea.
I cannot usefully comment on host_addr or localhost (inet_address() is missing any windows specific code), nor can I be sure whether a few more settings are also suspect.
I would treat it as a warning that architecture/shell/ip address related things may not be quite right on Windows, but it is pretty clear that much testing of pretty much everything is warranted anyway.
HTH, though I am only repeating what anyone can see, Pete