[opensuse] Konsole : How to show current user when using Alt-Tab
In Konsole, how to show current user, when using Alt-Tab on the keyboard ? details : You are user1 in konsole su - user2 press Alt-Tab to switch, Alt-Tab dialog appears. But the name on the screen is still user1 I use KDE 3.5.10, but could be the same with kde4 Dsant, from France -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2013-04-01 at 14:09 +0200, Dsant wrote:
In Konsole, how to show current user, when using Alt-Tab on the keyboard ?
details : You are user1 in konsole su - user2 press Alt-Tab to switch, Alt-Tab dialog appears. But the name on the screen is still user1
I use KDE 3.5.10, but could be the same with kde4
This may be intentional. Alt-tab is used to switch from one application to another, and konsole is still running as user1, in a desktop owned by user1. It is the bash session inside which belongs to user2. It is the same under xfce. When alt-tabbing between xterms, for example, the display shows the tittle of the applications; as xterm changes the title when you do a "su", this is shown in the alt-tab dispaly. But it doesn't happen with xfce terminal, because the tittle is not changed. - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFZk9QACgkQtTMYHG2NR9VF6gCfQu6bRZBAaqVLF4w/DGJnWsEW Na8AoI6rCEEfsmduCvcvl7nH1mylUxSz =eKUm -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 01.04.2013 16:03, schrieb Carlos E. R.:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Monday, 2013-04-01 at 14:09 +0200, Dsant wrote:
In Konsole, how to show current user, when using Alt-Tab on the keyboard ?
details : You are user1 in konsole su - user2 press Alt-Tab to switch, Alt-Tab dialog appears. But the name on the screen is still user1
I use KDE 3.5.10, but could be the same with kde4
This may be intentional.
Alt-tab is used to switch from one application to another, and konsole is still running as user1, in a desktop owned by user1. It is the bash session inside which belongs to user2.
It is the same under xfce. When alt-tabbing between xterms, for example, the display shows the tittle of the applications; as xterm changes the title when you do a "su", this is shown in the alt-tab dispaly. But it doesn't happen with xfce terminal, because the tittle is not changed.
Just checked it (XFCE). Both terminal (from XFCE) and xterm show the username while alt-tabbing through the windows. Karl
- -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux)
iEYEARECAAYFAlFZk9QACgkQtTMYHG2NR9VF6gCfQu6bRZBAaqVLF4w/DGJnWsEW Na8AoI6rCEEfsmduCvcvl7nH1mylUxSz =eKUm -----END PGP SIGNATURE-----
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Monday 01 April 2013 16:03:54 Carlos E. R. wrote:
On Monday, 2013-04-01 at 14:09 +0200, Dsant wrote:
In Konsole, how to show current user, when using Alt-Tab on the keyboard ?
details : You are user1 in konsole su - user2 press Alt-Tab to switch, Alt-Tab dialog appears. But the name on the screen is still user1
I use KDE 3.5.10, but could be the same with kde4
This may be intentional.
Alt-tab is used to switch from one application to another, and konsole is still running as user1, in a desktop owned by user1. It is the bash session inside which belongs to user2.
It is the same under xfce. When alt-tabbing between xterms, for example, the display shows the tittle of the applications; as xterm changes the title when you do a "su", this is shown in the alt-tab dispaly. But it doesn't happen with xfce terminal, because the tittle is not changed.
So the question is : how to automatically change konsole window title in KDE3 or KDE4 ? Dsant -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Dsant said the following on 04/02/2013 08:41 AM:
So the question is : how to automatically change konsole window title in KDE3 or KDE4 ?
Do you mean title or tabs? And what does 'automatically' consist of? As far as I can see the whole way KDE works manages window TITLES 'automatically' by giving them the name of the application. When I run konsole the window title follows the tab I select and tells me the directory, the application (usually bash) and the name of the application - konsole - itself. The labels on the tabs are configurable. I'd say "RTFM" but there isn't a man page, it part of the KDE documentation. Click on 'help'. That will give you 'konsole handbook'. Go to the page labelled "Rename Tab Dialog". I'm using KDE4; I can't help you with KDE3. Now I suspect this isn't what you want to hear, but that's because, while I can read your question so that the above is an answer, there's a good change you meant something else. If that's the case then please refine your question. For example, are you using tabs? How many? If not then why not? You realise, also, that konsole can be controlled over the D-BUS? Type qdbus org.kde.konsole-XXXX /Sessions/1 where XXXX is the PID of your konsole session You can find that typing qdbus | grep konsole (or "org.kde.konsole-`pidof -s konsole`") The Session/1 list will show you things like method void org.kde.konsole.Session.setTabTitleFormat( int context, QString format) and method void org.kde.konsole.Session.setTitle( int role, QString title) Oh, right, that means you'll have to learn about D-BUS .... For that you'll want the B-BUS tutorial: http://techbase.kde.org/Development/Tutorials/D-Bus/Introduction -- We succeed only as we identify in life, or in war, or in anything else, a single overriding objective, and make all other considerations bend to that one objective. Dwight D. Eisenhower, speech, April 2, 1957 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, 1 Apr 2013 14:09:59 +0200 Dsant <forum@votreservice.com> wrote:
In Konsole, how to show current user, when using Alt-Tab on the keyboard ?
details : You are user1 in konsole su - user2 press Alt-Tab to switch, Alt-Tab dialog appears. But the name on the screen is still user1
I use KDE 3.5.10, but could be the same with kde4
Window title follows tab names, as mentioned in another post. In other words use context menu (right click) and select "Rename Tab ...". There you can find that session user name is one of options. Shortcut for user ID is %u . My console is: Konsole Version 2.10.2 Using KDE Development Platform 4.10.1 "release 545". -- Regards, Rajko. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Anton Aylward
-
Carlos E. R.
-
Dsant
-
Karl Sinn
-
Rajko