FVWM: multiple sessions

From: Tim Hanson <tjhanson_at_comcast.net>
Date: Sun, 20 Mar 2005 20:41:39 -0800

I'm trying to figure out something for my laptop. It has two
environments: One is hooked to the home network, where it has a ready
source of power, access to nfs directories on two desktops, and can
serve vnc to those machines. The other is as a standalone, sometimes
with a wireless hook to the internet, on battery, and only the internal
hard drive.

The application would go a lot more smoothly with two completely
separate fvwm sessions, since many of the menu choices for one won't
work with the other.

My config file is ~/.fvwm/.fvwm2rc (I know, I'm going to change it RSN).
It is nothing but a series of a half-dozen Read statements, accessing a
set of subdirectories, each with files consisting of one menu's worth of
statements. This very distributed structure is great for keeping track
of things. I copied the entire ~/.fvwm directory from one of my
desktops, and it will serve as a basis of the two sessions I'm creating.
The "docked" session will require few changes, since nearly everything
available to the desktops is available to the laptop in this mode.

I copied the directory again to ~/.fvwmundocked, which I intend to
modify for standalone use. My startx wrapper looks something like this:


#!/bin/sh

# NETlock is the file my startup script creates when I'm hooked to my
# home network
 
if [ -e /etc/NETlock ] ;then
        FVWM_USERDIR=/home/timh/.fvwm
        export FVWM_USERDIR
        startx fvwm2
else
        FVWM_USERDIR=/home/timh/.fvwmundocked
        export FVWM_USERDIR
        startx fvwm2 -c ~/.fvwmundocked/.fvwm2rc
fi

It seems like that should take care of it, but all
my Read statements fail because they are in ~/.fvwmundocked.
Do I need to set something else?


--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Mar 20 2005 - 22:42:48 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST