How to open a gnome-terminal in specific workspace and run script within it automatically upon login


 
Thread Tools Search this Thread
Operating Systems Linux How to open a gnome-terminal in specific workspace and run script within it automatically upon login
Prev   Next
# 1  
Old 02-02-2011
How to open a gnome-terminal in specific workspace and run script within it automatically upon login

OK this is a bit messy.

I run Fedora with gnome on a compiz desktop, I have a script (userstart) that opens my 'standard' environment for all my machines when I login. userstart flips to a specific workspace and then opens the required applications in that workspace then flips to the next workspace....

I'm trying to enhance userstart as occasionally compiz won't kick in in time or the first workspace doesn't get flipped to properly.

So I've added to userstart commands that it detects which workspace it's in before it starts opening the apps on that workspace, however this requires that userstart is called from a 'hand off' script that's active on any desktop workspace.

So how do I automatically after login open a gnome-terminal session on a workspace that automatically calls the userstart script?

Thanks in advance

---------- Post updated at 10:34 AM ---------- Previous update was at 02:56 AM ----------

OK I worked out a way to do this.......
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Open gnome-terminal with multi tabs and automatically run a script in each tab

Hi All , i am trying to create an alias to open a new gnome-terminal and run some commands in each tab & to have a specific name for each tab i am using csh , tried this command gnome-terminal --tab -t "s1" --tab -t "s2" --tab -t "s3" --tab -t "s4" it opened 4 tabs but the title didn't... (0 Replies)
Discussion started by: Assem
0 Replies

2. Shell Programming and Scripting

Problem run script inside a gnome-terminal

hi, I would like to ask about using gnome-terminal command, I had a script that will run my VBOX VM in headless and i want to display the output(STDOUT) on the gnome-terminal window. The purpose that i want to display the STDOUT of the script cause i will used it or create a desktop shortcut for... (11 Replies)
Discussion started by: jao_madn
11 Replies

3. Shell Programming and Scripting

Help to hide shell terminal and run prompt program after ssh login for specified user

Hey guys, I have some task from my office to lock user on the specified directory after the user logged on using ssh. And then run prompt program to fill the required information. Yeah, just like an ATM system. My question: How could I do those?? AFAIK I have to edit the ~./bashrc. But the... (1 Reply)
Discussion started by: franzramadhan
1 Replies

4. Red Hat

How to open terminal automatically.

hi, I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout I does not know how to add my... (0 Replies)
Discussion started by: mypass
0 Replies

5. AIX

How to automatically load a script once I login?

Hi, may I know how to automatically load a script once I login? For example, I want to load "set -o vi" command once I login in my Aix. (2 Replies)
Discussion started by: ngaisteve1
2 Replies

6. Shell Programming and Scripting

Is command line invocation of gnome-terminal to run more than one command possible?

Hello, I am trying to learn how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here: #! /bin/bash # #TODO write this for gnome and xterm USAGE=" ______________________________________________ ${0##*/} run... (0 Replies)
Discussion started by: Narnie
0 Replies

7. Solaris

How to open and arrange terminal windows automatically under CDE?

Hi, Is there a way to open and arrange terminal windows automatically under CDE? For example, I want to open and arrange terminal windows like this: |------------| | TW TW TW | | TW TW TW | | TW TW TW | |------------| Thank you in advanced! (5 Replies)
Discussion started by: aixlover
5 Replies

8. Shell Programming and Scripting

open terminal to run cmd using shell script

i want the shell script to open the terminal and in that terminal i want to run a command specified in the script... how can it be done... (2 Replies)
Discussion started by: chandrabhushan
2 Replies

9. UNIX for Dummies Questions & Answers

how to run a Script automatically

How to make a script run automatically using a cron?? i do not know abt cron...... if i have simple.sh file and i need this to run everyday at a particular time what needs to be done thanks in advance (4 Replies)
Discussion started by: hamsa
4 Replies

10. UNIX for Dummies Questions & Answers

How to run a script automatically ?????

Hi All, How to run a script automatically using cronjob everyday from Monday to Friday 9A.M to 5P.M at an interval of ONE HOUR.I want the complete syntax means how to put in the cron job and there after. URGENTLY NEED HELP THANKS IN ADVANCE CHEERS Arunava (7 Replies)
Discussion started by: arunava_maity
7 Replies
Login or Register to Ask a Question
GNOME(1)						      General Commands Manual							  GNOME(1)

gnome-session - Starts up the GNOME desktop environment

SYNOPSIS
gnome-session [--choosesession] [--failsafe] [--purge-delay=DELAY] [--warn-delay=DELAY] [--suicide-delay=DELAY] [session-name] DESCRIPTION
The gnome-session program starts up the GNOME desktop environment. This command is typically executed by your login manager (either gdm, xdm, or from your X startup scripts). It will load either your last session, or it will provide a default session for the user as defined by the system administrator (or the default GNOME installation on your system). You can optionally specify a specific session name to restore. gnome-session is an X11R6 session manager. It can manage GNOME applications as well as any X11R6 SM compliant. gnome-session uses the contents of the ~/.gnome/session file for starting up as specified by the "Current Sesssion" key in the ~/.gnome/session-options file. Various default values are provided in case the file entry does not exist. If the session file does not exist, gnome-session will use the contents of the /usr/share/gnome/default.session file. OPTIONS
The following options are supported: --choose-session=ARG User can specify a session to load, as opposed to the session specified in the ~/.gnome/session-options file. If that entry does not exist in the ~/.gnome/session file (or if that file doesn't exist), it will use the default session and all saves to that session will be to the new session name. --failsafe Fail safe operations mode: only reads saved sessions from the default.session file. --purge-delay=ARG The number of millisecond that gnome-session will wait for clients to register, if you use 0 it will wait forever (default value: 30,000 milliseconds). --warn-delay=ARG The number of millisecond that gnome-session will wait for clients to respond, if you use 0 it will wait forever (default value: 10,000 milliseconds). --suicide-delay=ARG The number of millisecond that gnome-session will wait for clients to die, if you use 0 it will wait forever (default value: 10,000 milliseconds). ENVIRONMENT
gnome-session accepts all of the standard environment variables used by gnome programs, other than the SESSION_MANAGER environment vari- able. [ xref to a manpage where this is documented. ] gnome-session also sets several environment variables for the use of its child pro- cesses. SESSION_MANAGER This variable is used by session-manager aware clients to contact gnome-session. DISPLAY This variable is set to the X display being used by gnome-session. Note that if the --display option is used this might be different from the setting of the environment variable when gnome-session is invoked. SEE ALSO
default.session(5),gnome-session-save(1) BUGS
If you find bugs in the gnome-session program, please report these using bug-buddy or the gnome-bug script included with the GNOME libraries distribution. GNOME 1.0 GNOME(1)