Operating System - HP-UX
1753695 Members
5851 Online
108799 Solutions
New Discussion юеВ

CDE2.1 : set home session saves machine name

 
Jeroen Vermeeren
New Member

CDE2.1 : set home session saves machine name

When I do a "set home session" the current session is saved in $HOME/.dt/session.home.
In the file dtwm.db I find:
0.wmClientMachine: for every window/terminal on my screen
Unfortunately we use loadbalancing, so my next login will almost definitely be on a different machine. When this happens all windows/terminals are put on top of each other in the same workspace and the window sizes are not restored.
Any ideas how I get this right?
2 REPLIES 2
Alex Glennie
Honored Contributor

Re: CDE2.1 : set home session saves machine name

You could use the attached in conjuction with a user created script called sessionetc ($HOME/.dt/sessions/sessionetc to start you applications up one at a time in the desired workspaces as soon as a users logs into CDE ...if they take the geometry as a resource you could add that via the command line too ......

below is an eg of a sessionetc file, Zircon and Omgui and the names of 2 of my desktop workspaces.

# Set cursor color on root window

xsetroot -cursor_name arrow -fg yellow -bg red

# Y2K screensaver

#/opt/xscreensaver/bin/xscreensaver -no-splash &


# Start Zircon
sleep 2
/home/glennie/bin/switch Zircon

/usr/local/bin/zircon &
/home/glennie/chat/tfm -f &
sleep 10
/home/glennie/bin/switch Omgui

/usr/bin/X11/omgui &

ps the problem is a known defect .....
Jeroen Vermeeren
New Member

Re: CDE2.1 : set home session saves machine name

Yes, that would work, but it's just a workaround, isn't it... An other option I have is removing the line 0.wmClientMachine from the dtwm.db file but I would have to do that every time I set the home session.
But I could do it automaticly with the script
$HOME/.dt/sessions/sessionetc (didnt know about it yet)
But if it's a known defect, why don't they patch it?