Created attachment 108215 [details] screenshot of issue.... Running Manjaro KDE edition. Have had this frustrating bug since using KDE on neon and now on Manjaro. When executing a script, the console becomes unusable. So basically each time I need to execute a script, i need to open a new konsole or new tab. It fails to return to the prompt after executing the script...
The easiest way to determine if the issue is Konsole, try running the script in xterm and/or other terminals (gnome-terminal, etc)
ive tried the same script in xterm, and it works fine. So this is definately a konsole issue. I have fonts set to 120dpi, not sure if this would cause some issue like this? But I do have this same issue on every other kde machine I have around the house....
Ok but without the script, I have no way of debugging this
Can you provide the script in question?
Created attachment 108263 [details] sample script
Thanks for looking into this, its incredibly frustrating! Ive added my sample script. It happens with any script I run about 90% of the time.
Well I'm puzzled on why this would not work in your system/Konsole, but then work in xterm. It works here w/o issue. Perhaps a python bug? I have 2.7.12 Have you asked on Manjaro's forums/sites?
Created attachment 108273 [details] simpler script
its certainly not python. Ill ask the manjaro guys if they can help, but it also happens on kde neon.
If even a simple "echo" script does not return to the prompt, it is unrelated to Python. Is this reproducible with a freshly created user account? Are you using bash or a different default shell?
So ive tested this booting directly off the KDE manjaro bootable usb, and it has the same issue. So ive also posted on the manjaro forums, hopefully someone there may have a fix? https://forum.manjaro.org/t/konsole-becomes-uninteractive-after-running-any-bash-script/32879 Can I take it that these scripts are running fine on your machines? If so, what OS are you running KDE on?
(In reply to Christoph Feck from comment #10) > If even a simple "echo" script does not return to the prompt, it is > unrelated to Python. > > Is this reproducible with a freshly created user account? Are you using bash > or a different default shell? Im using bash, the default on manjaro
I have tried removing the .bashrc files from my home folder and also /etc/bash/ and still have the issue. Are there any other files that may affect this?
Ok ive made some progress! Ive found that if i run the script through the existing konsole window it is actually working. So manually typing ./echo.sh into the console works fine. The problem only comes when I run the script through dolphin! Which is how I usually run my scripts. Right click > Run in Konsole. If I do it this way I always get the bug. Can anyone else test this?
That's the correct behavior for how the konsolerun.desktop is coded; the hold means don't close; I think what you expect is not how 'Run in Konsole' actually means. [Desktop Action runInKonsole] TryExec=konsole Exec=konsole --hold -e %f
ok thanks, ill change that to work as intended. You can close this bug then.
actually, is there any way to change this to the behaviour I expect? I want run in konsole to launch the console, run the script, and return to prompt. Ive have a play with the commandline options and there looks to be no way to do this. Any ideas?
Adding to the end of my file I found a workaround! $SHELL
Good to hear - I wonder if other people have the same confusion about what 'Run in Konsole' means.
I suspect anyone with a windows background would expect this behaviour. Is it possible to add a setting to konsole to change this behaviour? As i think its a better solution than adding $shell to any script id like to run that way.