"who am i" isn't working in Guake #199

Closed
ulidtko opened this Issue Jul 9, 2013 · 12 comments

Comments

Projects
None yet
7 participants
@ulidtko
Member

ulidtko commented Jul 9, 2013

The controlling tty of Guake terminals lacks the username attribute (it's empty):

% who am i
%
% tty
/dev/pts/3
% who -a | grep pts/3     
           pts/3        2013-07-08 18:48                 0 id=/3    term=0 exit=0
^^^^^^^^^^
[no username]

This isn't happening in gnome-terminal.

@ghost ghost assigned ulidtko Jul 9, 2013

@toobaz

This comment has been minimized.

Show comment Hide comment
@toobaz

toobaz Sep 7, 2013

This is just to report that the bug doesn't appear is gtk3 guake (with bash as shell).

toobaz commented Sep 7, 2013

This is just to report that the bug doesn't appear is gtk3 guake (with bash as shell).

@scrawl

This comment has been minimized.

Show comment Hide comment
@scrawl

scrawl Feb 11, 2014

Is "who am i" a correct command? Try "whoami" instead. It works fine for me in guake.

 scrawl-desktop:~$ whoami
 scrawl

scrawl commented Feb 11, 2014

Is "who am i" a correct command? Try "whoami" instead. It works fine for me in guake.

 scrawl-desktop:~$ whoami
 scrawl
@gsemet

This comment has been minimized.

Show comment Hide comment
@gsemet

gsemet Feb 11, 2014

Member

actually I didn't knew it, but it seems to work on a terminal. But this look like a ubuntu-stuff. I take it

Member

gsemet commented Feb 11, 2014

actually I didn't knew it, but it seems to work on a terminal. But this look like a ubuntu-stuff. I take it

@gsemet gsemet added this to the 0.5.0 milestone Feb 11, 2014

@gsemet gsemet assigned gsemet and unassigned ulidtko Feb 11, 2014

@pypingou

This comment has been minimized.

Show comment Hide comment
@pypingou

pypingou Feb 11, 2014

Member

It's not an ubuntu-stuff, neither @ulidtko or I run ubuntu

Member

pypingou commented Feb 11, 2014

It's not an ubuntu-stuff, neither @ulidtko or I run ubuntu

@scrawl

This comment has been minimized.

Show comment Hide comment
@scrawl

scrawl Feb 11, 2014

I found a related discussion for mrxvt: https://lists.debian.org/debian-user/2009/01/msg02276.html

I'm not sure what a wtmp database is, but maybe it could help you ;)

scrawl commented Feb 11, 2014

I found a related discussion for mrxvt: https://lists.debian.org/debian-user/2009/01/msg02276.html

I'm not sure what a wtmp database is, but maybe it could help you ;)

@gsemet

This comment has been minimized.

Show comment Hide comment
@gsemet

gsemet Feb 11, 2014

Member

Ok

Member

gsemet commented Feb 11, 2014

Ok

@ulidtko

This comment has been minimized.

Show comment Hide comment
@ulidtko

ulidtko Feb 11, 2014

Member

This is on Ubuntu.

Yes, there is whoami, but who am i is also valid (and who mom likes too ☺), see man 1 who:

If ARG1 ARG2 given, -m presumed: 'am i' or 'mom likes' are usual.

wtmp/utmp database(s) just store (in binary format) records about who's logged in to the system. Programs like login, sshd write to that database.

The issue, I believe, is related to some details of how Guake initializes libvte. Have to look into this further.

Member

ulidtko commented Feb 11, 2014

This is on Ubuntu.

Yes, there is whoami, but who am i is also valid (and who mom likes too ☺), see man 1 who:

If ARG1 ARG2 given, -m presumed: 'am i' or 'mom likes' are usual.

wtmp/utmp database(s) just store (in binary format) records about who's logged in to the system. Programs like login, sshd write to that database.

The issue, I believe, is related to some details of how Guake initializes libvte. Have to look into this further.

@gsemet gsemet removed their assignment Feb 13, 2014

@gsemet gsemet modified the milestones: 0.6.0, 0.5.0 Feb 15, 2014

@bwrsandman

This comment has been minimized.

Show comment Hide comment
@bwrsandman

bwrsandman Feb 19, 2014

Contributor

I am on Arch.
In guake whoami works but who am i, who mom likes does not.
In gnome-terminal, they all do.

Contributor

bwrsandman commented Feb 19, 2014

I am on Arch.
In guake whoami works but who am i, who mom likes does not.
In gnome-terminal, they all do.

@gsemet

This comment has been minimized.

Show comment Hide comment
@gsemet

gsemet Feb 19, 2014

Member

I confirm than who am i doesn't work on ubuntu neither.

It is not really urgent, if someone want to fix it. I don't plan to fix it until 0.6.0

Member

gsemet commented Feb 19, 2014

I confirm than who am i doesn't work on ubuntu neither.

It is not really urgent, if someone want to fix it. I don't plan to fix it until 0.6.0

@behrangsa

This comment has been minimized.

Show comment Hide comment
@behrangsa

behrangsa Apr 7, 2014

Even who -m doesn't work, so I think this is a critical bug.

Even who -m doesn't work, so I think this is a critical bug.

@gsemet

This comment has been minimized.

Show comment Hide comment
@gsemet

gsemet Oct 28, 2014

Member

Should be linked to #349

Member

gsemet commented Oct 28, 2014

Should be linked to #349

@gsemet gsemet modified the milestones: 0.5.1, 0.5.2 Oct 28, 2014

@gsemet

This comment has been minimized.

Show comment Hide comment
@gsemet

gsemet Nov 3, 2014

Member

Duplicate of #349

Member

gsemet commented Nov 3, 2014

Duplicate of #349

@gsemet gsemet closed this Nov 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment