Re: OT: logname?
- To: "Christopher W. Aiken" <firstname.lastname@example.org>
- Cc: email@example.com
- Subject: Re: OT: logname?
- From: David B.Harris <firstname.lastname@example.org>
- Date: Tue, 9 Jan 2001 18:29:46 -0500
- Message-id: <E14G8D4email@example.com>
- In-reply-to: <Pine.LNX.4.31.0101091748300.21670-100000@darkstar>
- References: <Pine.LNX.4.31.0101091748300.21670-100000@darkstar>
To quote "Christopher W. Aiken" <firstname.lastname@example.org>,
# Slightly off topic. There is a utility, /usr/bin/logname
# that returns the "login name" of the user. The problem is:
# 1) in xterm, Eterm, kterm logname works OK
# 2) in gnome-terminal and kconsol logname always returns
# "logname: no login name"
# Why doesn't "logname" work correctly all of the time?
# We have an application what depends on the "logname"
# function to return the correct value. If a user installs
# Gnome or KDE the activity bar at the bottom has a "gnome-terminal"
# or "kconsol" by default. If they use those Icons to open up a
# work space, logname will not work. We shouldn't have to instruct
# our customers to setup an xterm, Eterm, of kterm just so that the
# logname function will work.
# Any ideas?
Well, I've got a WORKSFORME first; in gnome-terminal, 'logname' works
perfectly. However, I do see the error in Konsole. I'm using stock
Debian packages, through and through. No Helix or anything else(running
I don't know what the problem is, but $USER works too. Also, the source
for both the trouble emulators is available.
- OT: logname?
- From: "Christopher W. Aiken" <email@example.com>