Operating System - HP-UX
1829582 Members
3098 Online
109992 Solutions
New Discussion

Occupying of multiple workspaces

 
Raymond Tan
Occasional Contributor

Occupying of multiple workspaces

Hi all,
Would appreciate if someone can advise how can I start a hpterm in the X-window environment and have it automatically occupying all workspaces instead of me having to click on the "Occupy all workspace" under the menu. Thanks.
4 REPLIES 4
Michael Tully
Honored Contributor

Re: Occupying of multiple workspaces

Hi,

Have a look at this posting and also the document I've added to the bottom. I hope that they are of some assistance.


http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xccf5c6af36b7d5118ff10090279cd0f9,00.html


CDE: How can I start clients in a particular workspace?

Current Path Home
Score : 0
Document Type : EN
Date : 1998 Aug 09
Description : CDE: How can I start clients in a particular workspace?
Document Id : A4998451
Search String :

You may provide feedback on this document

View the printer friendly version of this document



--------------------------------------------------------------------------------

Problem Description

When using HP CDE, how can I start
clients in a particular workspace?

Configuration Info

Operating System - HP-UX
Version - 10.20
Hardware System - HP 9000
Series - D370

Solution

There are several ways to accomplish this.

The simplest is to do this manually after
an application is started up using the pull
down menu from the title bar.This will activate
the "Occupy Workspace" dialog window for that
application. You can then specify particular
workspaces or all workspaces using the mouse.

The other methods outlined below have various
limitations that don't allow them to work with
all applications or in particular circumstances.

If an application is coded in such a way as to
use XtAppInitialize to initialize the display and
create a top-level shell then the following solution
should work.

To start clients in a nominated workspace rather
than the current occupied workspace, you can use
the following command line option:

-xrm "*workspaceList: (workspace name)"

* Note: The double quotes are necessary for the
command to work.

You may also specify more than one workspace for
the client to appear in. To do this, separate the
workspace names with spaces. The following is an
example of starting a hpterm window in workspaces
Four and Five:

hpterm -xrm "*workspaceList: Four Five" &

For CDE, it is recommend using the built-in workspace
default names (ws0, ws1, ws2, etc.) instead of your
personal workspace names. The built-in defaults will
continue to work even if you rename your workspaces.

Not all clients support the use of the xrm option. To
determine whether a specific client does accept this
option, you will need to check the man page for that
client.

Also, the *workspaceList resource is not an application
resource, but is instead passed onto and parsed by the
window manager. Applications typically do not have a
workspaceList resource. The described behavior is a
feature. Since the application does not have a workspaceList
resource, the resource specification is passed on to
the X Toolkit. Because the X Toolkit does not recognize
a workspaceList resource, it does not remove the resource
specification from the command line. Instead, it ends up
in the WM_COMMAND property of the hpterm window. The
window manager (vuewm or dtwm) sees the workspaceList
resource specification in the property, parses it, and
then places the window in the specified workspace.
This process only occurs when the -xrm option is used to
specify the workspaceList value on the command line. There
is no method for specifying a workspace for specific
instances of hpterm through the resource database.

CDE has documented Workspace Manager functions that enable
an application to correctly deal with occupying particular
workspaces. These are described in the CDE programming
manuals and the DtWsm man page. To take advantage of this,
the application will have to incorporate additional code
and be linked against the CDE libraries (libDtSvc in
particular). There is example code that illustrates the
functions that get installed with the CDE Development kit.
This code is located in /usr/dt/share/examples/dtwsm.



Anyone for a Mutiny ?
Printaporn_1
Esteemed Contributor

Re: Occupying of multiple workspaces

Hi,

follow this :
- make your window occupied workspaces that you want , (some or all).
- select style manager then select startup.
- select "set home session" then OK
- make sure that atlogin , return to home session was selected , then OK.
enjoy any little thing in my life
Raymond Tan
Occasional Contributor

Re: Occupying of multiple workspaces

Hi,
I cannot use the switch command as it is one single application which needs to show up in all the workspaces.

I am unable to use the startup setting as well as the application will not appear in all workspace after we restart the application. Any other approach to this?
Wodisch
Honored Contributor

Re: Occupying of multiple workspaces

Hi,

you could put the "*workspaceList: Four Five" resource into your "$HOME/.Xdefaults" file (well, your users' $HOME's) - next time they start the application it should appear in all (choosen) workspaces:

$HOME/.Xdefaults:
dtterm*workspaceList: One Two Three
dtpad*workspaceList: One Two Three
xclock*workspaceList: One Two

If you then start "xclock" it would be visible in workspaces "One" and "Two", but "dtpad" (that's the "Editor" icon on the front panel) would be visible in three workspaces (One to Three)...

HTH,
Wodisch