Sponsored Content
Operating Systems Linux How to open a gnome-terminal in specific workspace and run script within it automatically upon login Post 302492911 by Bashingaway on Wednesday 2nd of February 2011 05:34:36 AM
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.......
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
DtWsmGetWorkspacesOccupied(library call)								  DtWsmGetWorkspacesOccupied(library call)

NAME
DtWsmGetWorkspacesOccupied -- get the workspaces in which a window resides SYNOPSIS
#include <Dt/Wsm.h> Status DtWsmGetWorkspacesOccupied( Display *display, Window window, Atom **ppaWorkspaces, int *pNumWs); DESCRIPTION
The DtWsmGetWorkspacesOccupied function works with the CDE workspace manager, dtwm(1), and returns the list of workspaces in which this window resides. Each element of the list is the name of a workspace (converted to an X atom). The display argument is the X display. The window argument is the window of interest. The *ppaWorkspaces argument is the address of a pointer to receive the pointer to a list of workspace names (converted to X atoms). The pNumWs argument is the address of an integer to receive the number of elements in the list of workspaces returned in *ppaWorkspaces. RETURN VALUE
Upon successful completion, the DtWsmGetWorkspacesOccupied function returns Success and the workspace manager returns in *ppaWorkspaces a list of atoms identifying the occupied workspaces, and returns in pNumWs the number of occupied workspaces; otherwise, it returns a value not equal to Success. APPLICATION USAGE
If the DtWsmGetWorkspacesOccupied function is not successful, failure may be due to a memory allocation error or failure to find the cor- rect workspace information (that is, the CDE workspace manager, dtwm(1), is not running). The application must use XtFree(3) to free data returned in *ppaWorkspaces. SEE ALSO
Dt/Wsm.h - DtWsm(5), XtFree(3), dtwm(1). DtWsmGetWorkspacesOccupied(library call)
All times are GMT -4. The time now is 03:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy