Re: Universal Context Sensitive Help utility program for Geany and other editors

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

On Linux there is a way of specifying a preferred browser. Failing that, you can use locate_file, to find out which browsers are installed on the system.

object BROWSER = 0 
browsers = { "midori", "dillo", "google-chrome", "firefox", "opera" } 
for browser_i = length(browsers) to 1 by -1 do 
    sequence temp = locate_file(browsers[browser_i], getenv("PATH")) 
    if not equal(temp, browsers[browser_i]) then 
        BROWSER = temp & " " 
        exit 
    end if 
end for 

Some bad news : As of 4.0, EUDIR does not get set. But you can find eui on Windows via: locate_file( "eui.exe", getenv("PATH") ) and then go up one directory to get where EUDIR is.

On debian the documents go to /usr/share/doc/euphoria/html.

[ Edited to remove stray creole code ]

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

Search



Quick Links

User menu

Not signed in.

Misc Menu