Version: (using Devel) OS: Linux Installed from: Compiled sources If you create a Konsole part and want to load a new url by calling part->openURL(url); then the url is not loaded because the part only loads an url this way if the session was not started by run();. I think this behavior is wrong because openURL(); should open the url not only once for a part object but anytime it is called.
Created attachment 42873 [details] A small patch
Your patch has some issues: -In most usecases you don't want the konsole to clear, but with your patch does this (so you should delete the line "sendInput("clear\n");") -I don't see the sense of the lines QString cancel; till sendInput(cancel); I only see it writing ^C without any result, so I think these lines could also be deleted
1) the first issue is ok, the maintainer(s) of Konsolepart should decide, I did this to prevent the user from seeing "^C" 2) in Dolphin this is done to prevent from an accidently execution, an example: $~>rm -rf * ; now the change directory command is added: $~>rm -rf * ; cd / <ENTER> and all files in the $HOME are removed, but maybe the user wanted to remove the command but the programm which owns the part was faster and changed the directory. I'd say that this is important. This patch is only a representation of an idea to fix this based on the Dolphin way of doing this.
Actually I've been meaning to do this for the bookmarks. There is another bko for clearing the command line before doing the bookmark. I think the ^C is a good option to clear the command line.
So, the real problem is showShellInDir() is broken, which is called within openURL(). *** This bug has been marked as a duplicate of bug 225857 ***