Changeset 37622
- Timestamp:
- 2023-04-07T14:58:56+12:00 (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/util/BrowserLauncher.java
r31665 r37622 101 101 // mozilla and netscape, try using a remote command to get things in the same window 102 102 String new_command = prog_name +" -raise -remote openURL("+url+",new-tab)"; 103 104 // In 2023, firefox using above command wouldn't open a new tab if a firefox was already open 105 // This command works however to open a new tab in existing firefox window: 106 // firefox --new-tab --url <URL> 107 // from https://askubuntu.com/questions/1123803/opening-a-new-tab-in-firefox-through-the-terminal 108 if(lower_name.indexOf("firefox") != -1) { 109 new_command = prog_name +" --new-tab --url "+url; 110 } 111 103 112 logger.info(new_command); 104 113 Runtime rt = Runtime.getRuntime();
Note:
See TracChangeset
for help on using the changeset viewer.