I added a new Gnome menu option to launch a custom script application. I am using Redhat 6, Gnome 2. This is all working but when it launches in a new terminal window I cannot get the title to display anything other than the default 'Terminal'.
Here's how I have it configured; I have added the following files to get it working:
- /usr/shared/applications/app.desktop ( configures launching of my application )
- /usr/shared/desktop-directories/app.directory (specify a directory from menu for my app)
- /etc/xdg/menu/application-merged/app.menu ( adds menu option to main Applications pull down menu)
The app.desktop file specifies the location of the script I want to run and I have set the 'Terminal' option to 'True' which launches it in a new terminal window. I have tried adding the following to during startup of the script but it doesn't change the title.
PROMPT_COMMAND='echo -ne "\033]0; APP TITLE\007"'
Setting the 'PROMPT_COMMAND' from a separate, interactive terminal DOES work though. Not sure why it doesn't work when launching from the gnome application launcher.