Ticket #57 (closed enhancement: fixed)

Opened 16 years ago

Last modified 16 years ago

Make the "logout" command work in debathena-workstation

Reported by: tabbott Owned by:
Priority: normal Milestone:
Component: Keywords:
Cc: wdc Fixed in version:
Upstream bug:

Description

I think this involves wrapping gnome-session-save.

Change History

comment:1 Changed 16 years ago by tabbott

  • Type changed from defect to enhancement

comment:2 Changed 16 years ago by wdc

When I type "logout" in one of my terminal windows, I get the error:

Not Login terminal.

Even when I chose "Terminal failsafe" login.

Is this what you were thinking when you opened this issue, or should I open a new issue?

The behavior I consider ideal would be:

  1. Typing "logout" in any terminal window in the session for a debathena-workstation

configuration would act as if I clicked on the logout button, as it does in Athena 9.4.

  1. Typing "logout" in the terminal window of a Terminal failsafe login should do so

as well.

Is this a wrapper issue, or an initialization issue for windows spawned from X session
that can be handled with a configuration parameter.

comment:3 Changed 16 years ago by wdc

  • Cc wdc added

comment:4 Changed 16 years ago by ghudson

Here's how this is supposed to work:

  • xsession.tcsh sets the XSESSION environment variable
  • cshrc or bashrc aliases "logout" to send a HUP to $XSESSION

I tested this when I did the dotfiles and it seemed to work. We could use gnome-session-save to put up a confirmation dialog, but really, typing "logout" is not the same as clicking a button; you can't do it by mistake. (You can space out and do it, but you're just as likely to answer yes to a confirmation dialog if you're in that mode.)

If this is not working for you, check whether XSESSION is set in the environment. If it isn't, xsession.tcsh didn't run, which probably means you aren't using the default gnome session.

comment:5 Changed 16 years ago by wdc

Ah. The previous test I ran was when my session was having trouble.
Re-testing confirms that my case #1 is properly operating.
Sensitized to the need for information, I see that the Terminal failsafe
login actually tells me to use "exit" to log out. I just didn't read it
as I logged in. Sigh.

So what actually is the bug being tracked here?

comment:6 Changed 16 years ago by andersk

gnome-session-save --kill --silent will log you out without putting up a confirmation dialog, but still gives the user a chance to save any unsaved documents.

comment:7 Changed 16 years ago by wdc

That sounds like a superior alias in the case of sessions controlled by gnome.
Could we make this change?

comment:8 Changed 16 years ago by ghudson

Change made.

comment:9 Changed 16 years ago by ghudson

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.