Re: FVWM: Style ... SkipMapping
On Mon, Nov 18, 2019 at 06:36:13PM +0100, Dr Rainer Woitok wrote: > And it works? Well, I have "FixedPPosition" rather than "NoPPosition". > Could that matter? Or is the relevent difference that you start the > browser from within "fvwm" while I'm starting it from within a shell > script? If it's not working for you, then I would suggest you do the following: 1. Launch firefox. When it's running, use FvwmIdent or xwininfo to ascertain the *class* of the window. It's either going to be Firefox or something else. If it's not 'Firefox' then you'll understand why the Style isn't matching. 2. Try adding: EWMHIgnoreStateHints Kindly, Thomas
Re: FVWM: Style ... SkipMapping
On Wed, 20 Nov 2019, Dr Rainer Woitok wrote: Well, in my case it's just another page in the same desktop. I'm not sure whether or not that matters. But above of that it's perhaps time to compare Fvwm and perhaps also Firefox versions. What versions do you use on what distribution? On OpenSuse Leap 42.3, fvwm 2.6.6 Mozilla Firefox 60.0.2 (as I said, I do not routinely use FF, I vastly prefer Pale Moon !)
Re: FVWM: Style ... SkipMapping
Lucio, On Wednesday, 2019-11-20 14:23:04 +0100, you wrote: > ... > No, sorry, I was not clear. It is the browser which goes straight to the > desktop designated, but I remain in the primary desktop ! Which I guess > is what you'd like. And what I get. Well, in my case it's just another page in the same desktop. I'm not sure whether or not that matters. But above of that it's perhaps time to compare Fvwm and perhaps also Firefox versions. On my Gentoo dis- tribution they are: Fvwm:2.6.5-r3 Firefox: 70.0.1 What versions do you use on what distribution? Sincerely, Rainer
Re: FVWM: Style ... SkipMapping
Greetings, On Tuesday, 2019-11-19 00:43:08 +, Hegel3DReloaded wrote: > ... > Your problem appeared trivial to me, but I have tried this in a test > environment and found VERY interesting behaviour: FINALLY! It started to feel like fighting windmills ... thankyou :-) > Firefox is desparately > trying to get in focus and under the mouse when started. It goes to the > desk and page we told it, SkipMapping works, but window program is jumping > back to you like a stray dog for a peace of meat. It is fast, so you cannot > see it without serious throttling of the CPU and GPU. I have tried couple > other > applications, but none of them exercises this behaviour. Tried even with > InitialMapCommand style - with that, we have more freedom for experimenting. > ... > This works as a workaround: > Style Firefox InitialMapCommand Schedule 500 MoveToPage 1 1 Not here, assuming the phrase "work" refers to Fvwm at least eventually moving back to the desktop page where my terminal window is waiting for input. > This: > Style Firefox StartsOnPage 0 1 1, SkipMapping, InitialMapCommand Schedule 500 > MoveToPage 1 1 > > will produce the following funny scenario: > > - Firefox appears on X server > - Immediately mapped by FVWM on page 1 1 > - It gets back to you like a dog > - ~ 0.5 seconds later, FVWM will kick it back where it belongs. :) Again, not here. Whatever I do I always end up perpetually staring at Firefox sitting in the desktop page I have assigned to it. Since this apparently being a Firefox rather than an Fvwm problem, I solved it now by removing the useless "FvwmCommand 'Style Firefox Skip- Mapping'" before the "nohup firefox" command and adding sleep 3 FvwmCommand 'GotoDeskAndPage prev' after the "nohup firefox" command. This may well be regarded as an ugly hack, bu at least it works, even though it takes 3 seconds. Sincerely, Rainer
Re: FVWM: Style ... SkipMapping
On Wed, 20 Nov 2019, Dr Rainer Woitok wrote: No idea why you start an application you always want NOT from InitFunction Simply because I do NOT always want it :-) of course ... your choice. I have many things (most, editors and terminals) I do not start at login (these are essentially just browser, mail, plus fvwm-related things like pager, perfmeter etc. ... there is even a network monitor I start at login but I dismiss soon) I even tried now starting firefox (not my palemoon browser which I left running) with /usr/bin/firefox & and it went straight to the desktop designates for browsers (due to the vestigial style). That's exactly what I'm observing here, too, and what I simply don't want. I want Fvwm NOT to change desktops when I start Firefox during login. Maybe, I just didn't yet get my point accross ... No, sorry, I was not clear. It is the browser which goes straight to the desktop designated, but I remain in the primary desktop ! Which I guess is what you'd like. And what I get. If you start a program using "nohup", this command ... I knew about it but it's a long long time since I felt the need to use it. -- Lucio Chiappetti - INAF/IASF - via Corti 12 - I-20133 Milano (Italy) For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html "Can you see Enrico Fermi punching a time clock? There are effective ways to measure scientific productivity; times clocks are not the way." (Leon M. Lederman to INFN)
Re: FVWM: Style ... SkipMapping
Lucio, On Monday, 2019-11-18 19:00:56 +0100, you wrote: > On Mon, 18 Nov 2019, Dr Rainer Woitok wrote: > > >> Style Firefox StartsOnDesk 1, SkipMapping, NoPPosition > >> + "I" Test (Init) Exec exec /usr/bin/palemoon myhomepage > > > > And it works? With "works" I meant it does respect "SkipMapping" and does NOT move to desktop 1! Does it do that? Sincerely, Rainer
Re: FVWM: Style ... SkipMapping
Lucio, On Monday, 2019-11-18 18:52:48 +0100, Lucio Chiappetti wrote: > ... > No idea why you start an application you always want NOT from InitFunction Simply because I do NOT always want it :-) > ... > I even tried now starting firefox (not my palemoon browser which I left > running) with /usr/bin/firefox & and it went straight to the desktop > designates for browsers (due to the vestigial style). That's exactly what I'm observing here, too, and what I simply don't want. I want Fvwm NOT to change desktops when I start Firefox during login. Maybe, I just didn't yet get my point accross ... > ... > If you are concerned of the runtime messages the browser may issue while > running (is that why you redirect stderr ?) If you start a program using "nohup", this command will create the file "nohup.out" in the current directory, if both, standard output and error are not taken care off. Sincerely, Rainer