From owner-freebsd-questions@FreeBSD.ORG Tue Jan 10 08:25:57 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E5E2106566B for ; Tue, 10 Jan 2012 08:25:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id C767F8FC0A for ; Tue, 10 Jan 2012 08:25:56 +0000 (UTC) Received: from r56.edvax.de (port-92-195-26-82.dynamic.qsc.de [92.195.26.82]) by mx02.qsc.de (Postfix) with ESMTP id 2A8281E547; Tue, 10 Jan 2012 09:25:55 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q0A8Psdw005768; Tue, 10 Jan 2012 09:25:54 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 10 Jan 2012 09:25:54 +0100 From: Polytropon To: Matthias Apitz Message-Id: <20120110092554.d3001ca5.freebsd@edvax.de> In-Reply-To: <20120110074504.GA1101@tiny> References: <20120110074504.GA1101@tiny> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: starting firefox3 with defined geometry X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 08:25:57 -0000 On Tue, 10 Jan 2012 08:45:04 +0100, Matthias Apitz wrote: > Hello, > > Is there some way to start firefox3 in a defined geometry, something > like > > $ firefox3 -geometry 1024x768 Answer: Yes, but it's not as easy as it could have been. Unlike nearly every other X11 program, notably the "old" and "outdated" ones, Firefox does _not_ seem to support the _standard_ -geometry WxH+X+Y parameter. However, you can define the window width and height with command line parameters: % firefox -width 1024 -height 768 I've tested this with the Firefox installation I have here (which is v6.0.1). Positioning of the window is not possible by this means. Also note that those parameters do not show up when you try % firefox -h to get some help, and "man firefox" is of course fully futile. :-) There is a "workaround" for the lack of standard geometry support: You could have Firefox execute JavaScript instructions at startup window.moveTo(100, 100); window.resizeTo(1024, 768); Those can even be provided on the command line. However, that's a bad excuse for not supporting what users expect working for 30 years. > UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) PDP-11 or K1600? Oh, and EC1056 here (OS/ES SVM OP1). :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...