Re: eugtk history

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...

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? grin

GtkEngine.e said...
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu