Show
Ignore:
Timestamp:
10/04/10 19:24:24 (22 months ago)
Author:
westram
Message:
  • changed default browse-url-command to 'xdg-open' ('open' on DARWIN). [thx elmar]
    • renamed AWAR_WWW_BROWSER to force update in userland
  • added 2 additional example URLs (SILVA + google) [thx elmar]
  • parse existing URLs and force insertion of missing examples if there are unused WWW patterns
  • fixed mismatched delete
  • updated WWW help
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/WINDOW/AW_global_awars.cxx

    r6385 r6588  
    103103} 
    104104 
     105#if defined(DARWIN) 
     106#define OPENURL "open"     
     107#else 
     108#define OPENURL "xdg-open" 
     109#endif // DARWIN 
     110 
    105111GB_ERROR ARB_init_global_awars(AW_root *aw_root, AW_default aw_def, GBDATA *gb_main) { 
    106112    aw_assert(!initialized);                        // don't call twice! 
     
    110116    gb_main4awar = gb_main; 
    111117 
    112     GB_ERROR error = aw_root->awar_string(AWAR_WWW_BROWSER, "(netscape -remote 'openURL($(URL))' || netscape '$(URL)') &", aw_def)->make_global(); 
     118    GB_ERROR error = aw_root->awar_string(AWAR_WWW_BROWSER, OPENURL " \"$(URL)\"", aw_def)->make_global(); 
    113119 
    114120    if (!error) {