Bug 314648 - action triged by shortcuts key lose some feature ,different from real command executed in terminal
Summary: action triged by shortcuts key lose some feature ,different from real command...
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_khotkeys (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 08:15 UTC by naturalchen
Modified: 2023-01-19 05:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description naturalchen 2013-02-08 08:15:26 UTC
action triged by shortcuts key lose some feature ,different from real command executed in terminal

start icon ->system setting -> shortcuts and guester -> custome shortchuts -> add new globle shortcut 
for /usr/bin/terminal 
I want to put the path in shell  to dynamic title in the terminal ,so I write a script in my .zsh:
case $TERM in
    xterm*|*rxvt*)
        precmd () {print -Pn "\e]0; %~\a"}
        ;;
esac

when I run command "/usr/bin/terminal" "terminal" or click button in my dolphin or start menu, the terminal works quite good and have the dynamic title display the current path in the shell,

but when I use the shortcut key triger the terminal(also run /uer/bin/terminal), the title cann't display at all

Reproducible: Always

Steps to Reproduce:
1.Install fedora 17 DVD fullversion with all software(must have KDE, zsh , xfc4-terminal emulator)
2.change default shell to zsh
3.write script  in ~/.zshrc:
precmd () {print -Pn "\e]0; %~\a"}
4.start icon ->system setting -> shortcuts and guester -> custome shortchuts -> add new globle shortcut 
for /usr/bin/terminal ,(you can set any triger you want ,I use <meta>+t )
5.press meta+t , the terminal do not have the dynamic title in terminal,
6. use command "terminal",the terminal jump out have dynamic title ,which trigged by shortcut key in KDE can't display
Actual Results:  
command open terminal ,terminal can have a dynamic title
but shortcut in kde open terminal,terminal do not have dynamic title

Expected Results:  
open terminal by shortcut key(in KDE), the terminal have dynamic title just like which I opened in CLI,

fedora 17 x64 ,full DVD installation (Linux tc 3.6.11-1.fc17.x86_64)
zsh
KDE
xfce4-terminal emulator
Comment 1 Christoph Feck 2013-02-08 10:51:23 UTC
I guess $TERM is only set for shells, not for other processes. I am not sure if khotkeys is able to fork a shell for each executed command.
Comment 2 Jekyll Wu 2013-02-08 22:41:34 UTC
Well, I see nothing wrong with khotkey here. The problem should be in /usr/bin/terminal (bad binary name ).

1. khotkey(more precisely, kded) is not started from a terminal, and the process(probably ksmserver) that starts kded is not started from terminal either. So you can't expect kded itself to have $TERM defined.
                                                                
2. even if khotkey(kded) has $TERM defined and is thus passed to the child process(/usr/bin/terminal), /usr/bin/terminal, as one terminal emulator itself, should NOT blindly accept that $TERM and pass to the shell running within it. It is /usr/bin/terminal that should take the responsibility of setting $TERM correctly for shells running within it. After, it is a terminal emulator .

Please create hotkeys for other terminal emulators and see whether the results are different.
Comment 3 Andrew Crouthamel 2018-11-09 00:52:40 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-11-18 03:27:46 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Justin Zobel 2022-12-20 22:51:52 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 6 Bug Janitor Service 2023-01-04 05:26:57 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2023-01-19 05:17:13 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!