Bug 66738 - Shortcut for closing sessions doesn't work with Root session
Summary: Shortcut for closing sessions doesn't work with Root session
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-28 08:46 UTC by Mikolaj Machowski
Modified: 2003-11-09 18:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikolaj Machowski 2003-10-28 08:46:33 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.2.2 
OS:          Linux

I cannot close root session with shortcut close session.
Comment 1 Pablo Pita Leira 2003-10-28 23:51:20 UTC
I can not reproduce what he is trying to do. I have a konsole open and I can close a root session (session from user root) by using ctrl-D (I am using KDE CVS head). 
Comment 2 Mikolaj Machowski 2003-10-29 01:43:46 UTC
Subject: Re:  Shortcut for closing sessions doesn't work with Root session

> 23:51 ------- I can not reproduce what he is trying to do. I have a
> konsole open and I can close a root session (session from user root) by
> using ctrl-D (I am using KDE CVS head).

Hmm. I've made cvs up today at 11AM (East Europe) and I can not close
root session with "ctrl+shift+w" (shortcut for close session). 
ctrl+d is "internal" *nix command and has nothing common with this bug.
In addition: menu entry "Close session" doesn't work on root session.

AFAIU problem lies in permissions: ctrl+d is passed to session and is
treated by shell as issued by root and closes shell. "Close session"
action tries to close session "externally" which is impossible because
common user (who issues this command) can not terminate root session.
Because there is no real need to be so restrictive, this privilege
awareness can be workarounded and Konsole should let "Close session"
action to close root sessions.


Comment 3 Stephan Binner 2003-11-01 19:41:47 UTC
Both "Close Session" and shortcut for it works for me with "Root Console", "Root Midnight Commander" sessions.
Comment 4 Mikolaj Machowski 2003-11-02 13:40:54 UTC
Subject: Re:  Shortcut for closing sessions doesn't work with Root session

> Both "Close Session" and shortcut for it works for me with "Root
> Console", "Root Midnight Commander" sessions.

And for me not. CVS 31.10.
Close action shortcut - Ctrl+Shift+W or anything else
and don't work: shortcut, Close session from context menu
and Close session from Tab menu.

Comment 5 Dik Takken 2003-11-09 18:01:13 UTC
KDE 3.2 Beta 1:

CTRL-D works, choosing 'close session' from the context menu of the tab does not work.