Re: FVWM: Session Management under fvwm2

2005-05-11 Thread Thomas Adam
On Thu, May 12, 2005 at 07:50:38AM +1000, Felix Karpfen wrote:
> And then?

And then... what?  that's it.  Fvwm is running within the session
manager - you can do as you were.  :)

> does not appear to work in conjunction with "fvwm-themes". I have
> failed to locate the "gnome-session-manager" (because I lack a basic
> familiarity with Gnome) and I suspect that the "killall" command needs
> additional modification if it is to start "fvwm-themes" next time.

The "killall" command is used so that the current running window manager
is kicked out from under the session manager, replacing it with fvwm.
With fvwm-themes, this is just fvwm, so --replace will still work,
providing you call not fvwm-themes, but:

fvwm -f themes-rc

(IIRC -- it has been a while since I last looked at fvwm-themes.)  As
for gnome-session-manager -- it's just called 'gnome-session'.

> And, in view of the other posts, where should the xearth command go  ?
> Left where it is or into ".xinitrc"  ?

It should be OK where it is.

> I venture to send this follow-up, because it looks as though it now
> needs very little to achieve what I was trying to do.

HTH,

-- Thomas Adam

--  
"One of us is a cigar stand, and one of us is a lovely blue incandescent
guillotine" -- Stephen Malkmus, "Type Slowly" from "Brighten The Corners"
--
Visit the official FVWM web page at http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: Session Management under fvwm2

2005-05-11 Thread Felix Karpfen
On Mon, 09 May 2005 00:32:47 +0100, Thomas Adam wrote
(<[EMAIL PROTECTED]>):

> you might also want to read an article I published on session
> management and fvwm:
>
> http://linuxgazette.net/100/adam.html
>

Belatedly, I have finally located a  fvwm man page that appears to
address my problems.  It says:

,

|  Most users just should put:
| 
| fvwm-themes-start
| 
|as  the  last  line of their .Xclients, .xinitrc or .xsession file.  If
|you want to use FVWM Themes with a real session manager, say GNOME, you
|need to use the --no-start option and put:
| 
| fvwm-themes-start --no-start
| gnome-session
`

And then?

It looks as though both entries are taken seriously.  I end up with
the gnome desktop and my previous-loaded packages - when loaded onto
the desktop - open at the point at which I had left them when I shut down
fvwm2.

The first tweak suggested in:

 http://linuxgazette.net/100/adam.html

does not appear to work in conjunction with "fvwm-themes".  I have
failed to locate the "gnome-session-manager" (because I lack a basic
familiarity with Gnome) and I suspect that the "killall" command needs
additional modification if it is to start "fvwm-themes" next time.

And, in view of the other posts, where should the xearth command go?
Left where it is or into ".xinitrc"?

I venture to send this follow-up, because it looks as though it now needs
very little to achieve what I was trying to do.


Felix Karpfen
-- 
Felix Karpfen
Public Key 72FDF9DF (DH/DSA)


--
Visit the official FVWM web page at http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: Session Management under fvwm2

2005-05-09 Thread Felix Karpfen
On Sat, 07 May 2005 22:08:33 +0100, Thomas Adam wrote
(<[EMAIL PROTECTED]>):

> 
> --- Felix Karpfen <[EMAIL PROTECTED]> wrote:
>> It would help at least one novice to have an example of an entry in the
>> (personal) configuration file that shows how to make a routinely used
>> menu into a permanent entry whenever fvwm2 is started.
> 
> If I understand you, you just want to add something like:
> 
> DestroyMenu mymenu
> AddToMenu mymenu
> + "program1" Exec exec prog1
> + "program2" Exec exec prog2 -option
>  
> Although I doubt that is what you want -- can you provide a clearer
> example of what you're actually wanting to do?
> 

 My apologies for failing to mention one important item - I access fvwm2
 via fvwm-themes. 
 
 Here is the content of my "personal" directory:
 
  [EMAIL PROTECTED] felixk]$ ls -l .fvwm/themes/personal/
 total 64
 -rw-r--r--  1 felixk felixk   96 Apr 18  2003 bindings-extra
 -rw-r--r--  1 felixk felixk 8008 Feb 28 11:52 functions-appbind
 -rw-r--r--  1 felixk felixk  776 Apr 28 21:33 functions-appbind-extra
 -rw-r--r--  1 felixk felixk   94 Apr 18  2003 functions-extra
 -rw-r--r--  1 felixk felixk 1459 Apr 18  2003 globalfeel
 -rw-r--r--  1 felixk felixk  678 Mar 16 12:32 menus-extra
 -rw-r--r--  1 felixk felixk0 Apr 18  2003 menus-programs-extra
 -rw-r--r--  1 felixk felixk   80 Aug 14  2004 startup
 -rw-r--r--  1 felixk felixk   95 Apr 18  2003 startup.01.bk
 -rw-r--r--  1 felixk felixk   68 Apr 18  2003 stroke-extra
 
 And these are the current entries in my "startup" file (which I imagine
 needs additions):
 
 AddToFunc InitFunction
 + I Exec sleep 5 
 + I Exec exec xearth -label -wait 240 
 
 The programs that I load routinely are the Opera browser, the Pan
 newsreader and the Gnome terminal.  I load each of them onto a different
 page and envisage that the pages need to be specified in the start-up
 file. It would be great if the programs opened at the point at which
 they were closed when fvwm2 was shutdown.  Not really necessary since
 Opera and Pan do this by default.
 
 I hope that I have the terminology correct.
 
 Thank you for the prompt reply.
 > 
 Felix Karpfen
-- 
Felix Karpfen
Public Key 72FDF9DF (DH/DSA)


--
Visit the official FVWM web page at http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: Session Management under fvwm2

2005-05-08 Thread Thomas Adam
On Mon, May 09, 2005 at 01:15:41AM +, Mikhael Goikhman wrote:
> so if SM does not start one, then and only then it may be placed in
> SessionInitFunction.

Quite.  I assumed this was such an instance.

-- Thomas Adam

--  
"One of us is a cigar stand, and one of us is a lovely blue incandescent
guillotine" -- Stephen Malkmus, "Type Slowly" from "Brighten The Corners"
--
Visit the official FVWM web page at http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: Session Management under fvwm2

2005-05-08 Thread Mikhael Goikhman
On 09 May 2005 00:32:47 +0100, Thomas Adam wrote:
> 
> 
> --- Felix Karpfen <[EMAIL PROTECTED]> wrote:
> > AddToFunc InitFunction
> > + I Exec sleep 5 
> > + I Exec exec xearth -label -wait 240 
> > 
> > The programs that I load routinely are the Opera browser, the Pan
> > newsreader and the Gnome terminal.  I load each of them onto a
> > different
> > page and envisage that the pages need to be specified in the start-up
> > file. It would be great if the programs opened at the point at which
> > they were closed when fvwm2 was shutdown.  I suspect that all the
> > mentioned programs are already configured to do that, but need to try
> > it before I can be certain.
> 
> Right -- you want to see 'SessionInitFunction' as that function is the
> same as the above *except* that it runs only via a session manager.

No. The only usage of SessionInitFunction I know is to start FvwmBanner.
I don't think X applications (even xearth) belong to SessionInitFunction.
Otherwise a user gets 2 copies of the same applications on the next
start, one copy is started by a session manager. However different X
programs behave differently regarding SM, so if SM does not start one,
then and only then it may be placed in SessionInitFunction.

Regards,
Mikhael.
--
Visit the official FVWM web page at http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: Session Management under fvwm2

2005-05-08 Thread Thomas Adam

--- Felix Karpfen <[EMAIL PROTECTED]> wrote:
> AddToFunc InitFunction
> + I Exec sleep 5 
> + I Exec exec xearth -label -wait 240 
> 
> The programs that I load routinely are the Opera browser, the Pan
> newsreader and the Gnome terminal.  I load each of them onto a
> different
> page and envisage that the pages need to be specified in the start-up
> file. It would be great if the programs opened at the point at which
> they were closed when fvwm2 was shutdown.  I suspect that all the
> mentioned programs are already configured to do that, but need to try
> it before I can be certain.

Right -- you want to see 'SessionInitFunction' as that function is the
same as the above *except* that it runs only via a session manager.
 
> I hope that I have the terminology correct.

Yup.  I hate doing this, but you might also want to read an article I
published on session management and fvwm:

http://linuxgazette.net/100/adam.html

-- Thomas Adam



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
--
Visit the official FVWM web page at http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: Session Management under fvwm2

2005-05-07 Thread Thomas Adam

--- Felix Karpfen <[EMAIL PROTECTED]> wrote:
> It would help at least one novice to have an example of an entry in
> the (personal) configuration file that shows how to make a routinely
> used menu into a permanent entry whenever fvwm2 is started.

If I understand you, you just want to add something like:

DestroyMenu mymenu
AddToMenu mymenu
+ "program1" Exec exec prog1
+ "program2" Exec exec prog2 -option
 
Although I doubt that is what you want -- can you provide a clearer
example of what you're actually wanting to do?

-- Thomas Adam



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
--
Visit the official FVWM web page at http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]