From owner-freebsd-stable Sun Sep 22 21:21:40 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C697437B401 for ; Sun, 22 Sep 2002 21:21:38 -0700 (PDT) Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.8.210.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1492B43E42 for ; Sun, 22 Sep 2002 21:21:38 -0700 (PDT) (envelope-from alane@wwweasel.geeksrus.net) Received: from wwweasel.geeksrus.net (localhost [127.0.0.1]) by wwweasel.geeksrus.net (8.12.6/8.12.6) with ESMTP id g8N4LFHL043596; Mon, 23 Sep 2002 00:21:15 -0400 (EDT) (envelope-from alane@wwweasel.geeksrus.net) Received: (from alane@localhost) by wwweasel.geeksrus.net (8.12.6/8.12.6/Submit) id g8N4LFvr043595; Mon, 23 Sep 2002 00:21:15 -0400 (EDT) (envelope-from alane) Date: Mon, 23 Sep 2002 00:21:15 -0400 From: AlanE To: Jonathan Chen Cc: KDE FreeBSD List , FreeBSD Stable List Subject: Re: Weird uptime(1) output Message-ID: <20020923042115.GA43567@wwweasel.geeksrus.net> Reply-To: KDE FreeBSD List References: <20020923033214.GB48084@wwweasel.geeksrus.net> <20020923041250.GA500@grimoire.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020923041250.GA500@grimoire.chen.org.nz> X-message-flag: Magic 8-Ball says "Outlook not so good." I'll ask it about Exchange next. User-Agent: Mutt/1.5.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Sep 23, 2002 at 04:12:50PM +1200, Jonathan Chen wrote: >On Sun, Sep 22, 2002 at 11:32:14PM -0400, AlanE wrote: >> I have discussed this with the KDE maintainer of kdm, and he states that >> he *wants* the utmp entry to be :0 (or :0.0, or whatever the DISPLAY >> is). While I disagree with that, it's kinda hard to get that information >> (the tty) to the script that makes the utmp entry. >> >> I may try another way to do it in a FBSD patch once KDE 3.1 hits the >> tree (whenever that is). For right now, you'll just have to live with >> it, as I'm the guy who normally maintains kdm in the ports tree. > >I've changed it from :0 to console (and it works fine). The file to >patch manually is the last line of /usr/local/share/config/kdm/Xstartup: > > exec sessreg -a -l $DISPLAY -x /usr/local/share/config/kdm/Xservers -u /var/run/utmp $USER > >to: > exec sessreg -a -l console -x /usr/local/share/config/kdm/Xservers -u /var/run/utmp $USER Well, technically that's not truly correct. You really want it to say (for the default case) ttyv8 but the problem is getting that passed from kdm on out as some sort of env var (DISPLAY_TTY?) that you can use. kdm knows it's ttyvN because that's the first arg, but all it does with that is bitch about it (unless I patched that out, I don't remember). copied to stable, but replies set to kde-freebsd only; please respect that and do not copy this topic further on the stable list. thanks. -- Alan Eldridge Unix/C(++) IT Pro, 20 yrs, seeking new employment. (http://wwweasel.geeksrus.net/~alane/resume.txt) KDE, KDE-FreeBSD Teams (http://www.kde.org, http://freebsd.kde.org/) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message