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
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.
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.
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!
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!
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!
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!
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!