FVWM: FVWM and FireFox browser

2005-03-29 Thread Lucio Chiappetti
I'm trying to configure fvwm (2.5.10 unde SuSE Linux) with two desktops.
Desktop 0 should be the main (local) work desktop, desktop 1 should host
some permanent outer world applications started at login, like e.g. a
VNC viewer to connect to another machine, or a web browser.

I've chosen Mozilla Firefox as web browser because of its lightness.

However I'm unable to convince it to start in the designated desktop and
page (I'm also unable to convince it to start with the window geometry I
want, it looks like it ignores any standard X style resource specification
on the command line ... and also those regarding initial desktop
location).

This is an extract from my .fvwm2rc. The part on the VNC viewer works, the
part on firefox does not.


AddToFunc InitFunction
 ...
 + I   Exec exec vncviewer -name OldPoseidonVNC -passwd myfile myhost:1
 + I   Exec firefox http://myhomepage

I tried (for firefox) also Exec exec or a -name directive, but with no
avail.

Style OldPoseidonVNC StartsOnPage 1 1 0, SkipMapping
Style firefox Page 1 0 0, SkipMapping, NoPPosition

The style for the specific VNC viewer works nicely, but the one for
firefox does not (I tried also without NoPPosition, with a -name matching
the one in InitFunction, with a name of firefox or firefox-bin ... but all
with no avail. Firefox insists in starting in desktop 0.

I also noticed that firefox creates a bunch of .gnome related directories.

Is there any known incompatibility between firefox and fvwm, or, better,
any known trick to start firefox under fvwm in a given desktop ?

Thanks in advance


Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.mi.iasf.cnr.it/~lucio/personal.html


--
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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: FVWM and FireFox browser

2005-03-29 Thread Thomas Adam
On Tue, Mar 29, 2005 at 11:15:17AM +0200, Lucio Chiappetti wrote:
 However I'm unable to convince it to start in the designated desktop
 and page (I'm also unable to convince it to start with the window
 geometry I want, it looks like it ignores any standard X style

Firefox, alas, doesn't have a -geometry option.  But it does (albeit
loosely) try to remember its position when it next loads up.  There are
a few ways around it to try and coerce it into a fixed position, which
I'll discuss below.

 This is an extract from my .fvwm2rc. The part on the VNC viewer works,
 the part on firefox does not.


 AddToFunc InitFunction ... 
 + I Exec exec vncviewer -name OldPoseidonVNC -passwd myfile myhost:1 
 + I Exec firefox http://myhomepage

 I tried (for firefox) also Exec exec or a -name directive, but with
 no avail.

Use the Resource of firefox (Gecko) as a more precise match.

 Style OldPoseidonVNC StartsOnPage 1 1 0, SkipMapping 
 firefox Page 1 0 Style 0, SkipMapping, NoPPosition

Style Gecko  StartsOnPage 1 0, SkipMapping

works for me.

I mentioned earlier about geometries.  Using a module called FvwmEvent,
you can get Fvwm to do things when a condition happens.  So for example,
you might want to move the firefox window somewhere.  Here's what
you could do:

DestroyModuleConfig Event-FF: *

*Event-FF: Cmd  Function
*Event-FF: PassId
*Event-FF: new_window MoveFireFox

Whenever a new window is created, fvwm will then call the MoveFireFox
function which we can declare as this:

DestroyFunc MoveFireFox
AddToFunc MoveFireFox
+ I Any (CurrentDesk !Iconic !AcceptsFocus) \
  ThisWindow (Gecko) Move 120p +0p

AddToFunc StartFunction I Module FvwmEvent Event-FF

For instance.  This would then take FireFox and move it to the location
specified in pixels.  Slightly OTT, but it's possible.  :)

-- 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 URL: 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: FVWM and FireFox browser

2005-03-29 Thread Thomas Adam
On Tue, Mar 29, 2005 at 06:58:32PM +0200, Lucio Chiappetti wrote:
 I'm not sure what are the customs of the FVWM Mailing List, both as
 general education (do people normally reply to the list, reply
 individually and cc: the list, reply individually and the original
 poster has a duty to post a summary) and as software id (I mean, how
 do I recognize a mail as coming from the list to avoid to filter it as
 spam, or to filter a personal reply as spam ).

One replies to the list, unless someone explicitly requests to be CCed
in which case, that's usually honoured.

 new_window event is not recognized by my version, I had to use
 add_window

That was a mistake on my part -- there never has been an new_window
directive -- always add_window.  Glad you know about the man page,
though.  :)

 DestroyFunc ResizeFireFox AddToFunc ResizeFireFox + I (!Transient)
 ThisWindow (Gecko) Resize 850p 980p

 I had to introduce the (!Transient) condition otherwise all the popups
 by the browser came out as big as my 850x980 page !

Heh.  It was just a quick suggestion:

+ I ThisWindow (Gecko !Transient) Resize 850p 980p


 ... hmm, actually I'm not sure that my (!Transient) works. I mean, in
 practice it works (popups are OK) but my .xsession-errors is full of
 errors No such command (!Transient) ... the same which occurred with
 PlacedByFvwm.

Indeed.  See above.  It's ThisWindow which needs to know about a)  The
name/resource/class of the window, and  b)  Any conditions to apply to
it.

-- 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 URL: 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]