Re: FVWM: applications during startup

From: George \ <nephrite_at_inbox.ru>
Date: Tue, 17 Feb 2004 10:19:27 +0300

On Tue, Feb 17, 2004 at 01:58:26AM +0100, calmar wrote:
> Hi,
>
> I want to start some applications during startup.
>
> I have the CVS Version of fvwm and I added this to the .fvwm2rc file:
>
> ,----
> | AddToFunc InitFunction
> | + I exec fvwmsetbg -l
> | + I exec emacs
> | + I Wait Emacs
> | + I Next (Emacs) MoveToPage 2 0
> | + I Next (Emacs) WindowStyle !Borders, NoTitle
> | + I Next (Emacs) ResizeMove 100 100 0 0
> | + I exec aterm
> | + I Wait aterm
> | + I Next (aterm) MoveToPage 0 0
> | + I Next (aterm) WindowStyle !Borders, NoTitle
> | + I Next (aterm) ResizeMove 100 100 0 0
> `----
>
>
> I want the application to start on a given page (and I thought I
> would try to do with with the `MoveToPage' function.
> I also want to give this app some Styles (like above !Borders,
> NoTitle)
>
> But it happens that especially the MoveToPage does not work. The
> apps are showing up on the page 0 0 only. But when I invode the
> MoveToPage command after all is started up, it works. (So after 2
> hours of testing I'm also a little bit confused, and don't know
> really what works or not ... I have to admit)

You may try using StartsOnPage style. Like this

AddToFunc InitFunction
+ I Style Emacs StartsOnPage 2 0
+ I exec emacs
+ I wait Emacs
+ I Style Emacs StartsAnyWhere

here we set style for emacs to appear on page 2 0 , then wait for window to
appear and then remove the style just in case you want to launch other
emacses in current page. I didn't test it though, try on your own risk :-)

> Maybe I could try to get this to work when I switch to a desk,
> and just startup there the application (according the the fvwm
> man page), but then I'm still wondering why this above does not
> really work here.
>
> Maybe the Wait function does not wait long enough? or has a wrong
> parameter?

Documentation says 'Wait' will wait until window appears, no timeouts apply.

> Maybe it's not a good idea to use the cvs version really?

I don't think they've broken this. Maybe there are some other issues.

> Thanks for any hints!
>
> Marco Candrian
> --
> calmar
> (o_ GNU/Linux is GREAT
> //\
> V_/_ http://www.calmar.ws
>
>
> --
> 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.
>

-- 
С уважением,
Георгий "Nephrite" Потапов
Inline Technologies
--
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 Tue Feb 17 2004 - 01:21:35 GMT

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