I am running Ubuntu 10.04 LTS. I have 4 Gnome-style workspaces -- only one of the 4 workspaces is visible on-screen at a time.
As a programmer, I periodically need to launch an embedded browser from a bash script.
The main feature I need is that the browser must open in the same workspace as the bash script it is called from, even if another instance of the browser is running in another (inactive) workspace.
CASE 1: No instance is running
- Running the Opera browser from the script with the URL as the sole parameter displays the Speed-Dial tab, and a second tab with my content. UNDESIRED BEHAVIOUR
- Even worse, if I add the -newwindow in the above case, two windows get spawned, one with the Speed-Dial tab, and a second with with my content. UNDESIRED BEHAVIOUR
- Running the Opera browser from the script with the URL as a parameter along with -activetab displays my content as the sole tab of the browser in my current workspace. THIS IS THE BEHAVIOUR I WANT!
- If I specify both -newwindow and -activetab, in the above case, it appears that -activetab is ignored. REFERENCE BEHAVIOUR
CASE 2: Another instance is running
- Running the Opera browser from the script without the URL as the sole parameter outputs "Activated running instance" and the webpage opens in that browser. UNDESIRED BEHAVIOUR
- Running the Opera browser with the -newwindow option launches a new window in my current workspace with my content as the sole tab of the browser. THIS IS THE BEHAVIOUR I WANT.
- Running the Opera browser from the script with the URL as a parameter along with -activetab displays replaces the content in that workspace and displays only "Activated Running Instance" in the script window. UNDESIRED BEHAVIOUR
- If I specify both -newwindow and -activetab, in the above case, it appears that -newwindow is ignored. INCONSISTENT BEHAVIOUR