WEE under Wine

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

The Run menu F5 hotkey options haven't worked for me while running wee under Wine on Ubuntu. So I copied some code from ed.ex into the run_start procedure in the file ui_win.e and it seems to work just fine now. I'm sure there is a better way to do this - can euphoria detect Wine?

--  mods to enable WEE's Run/F5 options to execute current file  
--  file ui_win.e 
include std/text.e  -- for lower 
procedure run_start() 
    -- atom result  -- not needed under wine 
 
    -- save, no confirm 
    if save_if_modified(0) = 0 or length(file_name) = 0 then 
      return -- cancelled, or no name 
    end if 
 
    run_file_name = file_name 
 
    ifdef UNIX then system 
            system("eui \"" & file_name & "\"") 
     elsedef 
            if match(".exw", lower(file_name)) or 
                  match(".ew",  lower(file_name)) then 
                system("euiw \"" & file_name & "\"") 
            else 
                system("eui \"" & file_name & "\"") 
            end if 
    end ifdef 
 
--    result = c_func(ShellExecute, { 
--  hMainWnd, NULL, 
--  alloc_string(run_file_name), 
--  NULL, 
--  NULL, 
--  1}) 
--    free_strings() 
 
end procedure 
 
new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu