KDE Dolphin: How to change the current directory by code in the folder pane?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I'd like to have a dolphin (KDE 4.13.3) service menu with that I can change the current opened folder/directory to another one.



To be more precisely, I want to go directly to the real path/target of a link folder.



The code itself is quite simple:



cd "$(realpath %f)"


Well, it changes the current directory but it does not open it in the folder pane.



How can I manage that? Is there a way anyway?







share|improve this question





















  • Typing f="tmp"; cd $(realpath $f) in to the terminal pane of a dolphin window causes the folder pane to change to the specified folder for me. Is that what you're trying to do? [Dolphin 17.04.3, KDE Framework 5.44]
    – pbhj
    Jun 6 at 2:44










  • No, sorry, but thanks anyway. "$f" is used as a placeholder for the currently (single) selected file/folder that is handed over to the service menu. So it is already set. The command works though in the terminal pane, but somehow it has no effect on the folder pane.
    – Jens
    Jun 6 at 5:33











  • Sorry, correction: The command works though from the terminal pane, but somehow it has no effect from within the folder pane when I call it through the service menu. The service menu itself is correct and well formatted as it should be.
    – Jens
    Jun 6 at 5:41










  • I presume the trouble is that the command is executed in a new sub-shell/tty which has no effect on the calling process.
    – Jens
    Jun 6 at 5:47










  • Ah, you're running that code from a script? If so then yes, cd operates on a subshell which is closed when the script exits. unix.stackexchange.com/questions/27139/…
    – pbhj
    Jun 6 at 10:11














up vote
1
down vote

favorite












I'd like to have a dolphin (KDE 4.13.3) service menu with that I can change the current opened folder/directory to another one.



To be more precisely, I want to go directly to the real path/target of a link folder.



The code itself is quite simple:



cd "$(realpath %f)"


Well, it changes the current directory but it does not open it in the folder pane.



How can I manage that? Is there a way anyway?







share|improve this question





















  • Typing f="tmp"; cd $(realpath $f) in to the terminal pane of a dolphin window causes the folder pane to change to the specified folder for me. Is that what you're trying to do? [Dolphin 17.04.3, KDE Framework 5.44]
    – pbhj
    Jun 6 at 2:44










  • No, sorry, but thanks anyway. "$f" is used as a placeholder for the currently (single) selected file/folder that is handed over to the service menu. So it is already set. The command works though in the terminal pane, but somehow it has no effect on the folder pane.
    – Jens
    Jun 6 at 5:33











  • Sorry, correction: The command works though from the terminal pane, but somehow it has no effect from within the folder pane when I call it through the service menu. The service menu itself is correct and well formatted as it should be.
    – Jens
    Jun 6 at 5:41










  • I presume the trouble is that the command is executed in a new sub-shell/tty which has no effect on the calling process.
    – Jens
    Jun 6 at 5:47










  • Ah, you're running that code from a script? If so then yes, cd operates on a subshell which is closed when the script exits. unix.stackexchange.com/questions/27139/…
    – pbhj
    Jun 6 at 10:11












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'd like to have a dolphin (KDE 4.13.3) service menu with that I can change the current opened folder/directory to another one.



To be more precisely, I want to go directly to the real path/target of a link folder.



The code itself is quite simple:



cd "$(realpath %f)"


Well, it changes the current directory but it does not open it in the folder pane.



How can I manage that? Is there a way anyway?







share|improve this question













I'd like to have a dolphin (KDE 4.13.3) service menu with that I can change the current opened folder/directory to another one.



To be more precisely, I want to go directly to the real path/target of a link folder.



The code itself is quite simple:



cd "$(realpath %f)"


Well, it changes the current directory but it does not open it in the folder pane.



How can I manage that? Is there a way anyway?









share|improve this question












share|improve this question




share|improve this question








edited Jun 6 at 19:56
























asked Jun 6 at 1:44









Jens

689




689











  • Typing f="tmp"; cd $(realpath $f) in to the terminal pane of a dolphin window causes the folder pane to change to the specified folder for me. Is that what you're trying to do? [Dolphin 17.04.3, KDE Framework 5.44]
    – pbhj
    Jun 6 at 2:44










  • No, sorry, but thanks anyway. "$f" is used as a placeholder for the currently (single) selected file/folder that is handed over to the service menu. So it is already set. The command works though in the terminal pane, but somehow it has no effect on the folder pane.
    – Jens
    Jun 6 at 5:33











  • Sorry, correction: The command works though from the terminal pane, but somehow it has no effect from within the folder pane when I call it through the service menu. The service menu itself is correct and well formatted as it should be.
    – Jens
    Jun 6 at 5:41










  • I presume the trouble is that the command is executed in a new sub-shell/tty which has no effect on the calling process.
    – Jens
    Jun 6 at 5:47










  • Ah, you're running that code from a script? If so then yes, cd operates on a subshell which is closed when the script exits. unix.stackexchange.com/questions/27139/…
    – pbhj
    Jun 6 at 10:11
















  • Typing f="tmp"; cd $(realpath $f) in to the terminal pane of a dolphin window causes the folder pane to change to the specified folder for me. Is that what you're trying to do? [Dolphin 17.04.3, KDE Framework 5.44]
    – pbhj
    Jun 6 at 2:44










  • No, sorry, but thanks anyway. "$f" is used as a placeholder for the currently (single) selected file/folder that is handed over to the service menu. So it is already set. The command works though in the terminal pane, but somehow it has no effect on the folder pane.
    – Jens
    Jun 6 at 5:33











  • Sorry, correction: The command works though from the terminal pane, but somehow it has no effect from within the folder pane when I call it through the service menu. The service menu itself is correct and well formatted as it should be.
    – Jens
    Jun 6 at 5:41










  • I presume the trouble is that the command is executed in a new sub-shell/tty which has no effect on the calling process.
    – Jens
    Jun 6 at 5:47










  • Ah, you're running that code from a script? If so then yes, cd operates on a subshell which is closed when the script exits. unix.stackexchange.com/questions/27139/…
    – pbhj
    Jun 6 at 10:11















Typing f="tmp"; cd $(realpath $f) in to the terminal pane of a dolphin window causes the folder pane to change to the specified folder for me. Is that what you're trying to do? [Dolphin 17.04.3, KDE Framework 5.44]
– pbhj
Jun 6 at 2:44




Typing f="tmp"; cd $(realpath $f) in to the terminal pane of a dolphin window causes the folder pane to change to the specified folder for me. Is that what you're trying to do? [Dolphin 17.04.3, KDE Framework 5.44]
– pbhj
Jun 6 at 2:44












No, sorry, but thanks anyway. "$f" is used as a placeholder for the currently (single) selected file/folder that is handed over to the service menu. So it is already set. The command works though in the terminal pane, but somehow it has no effect on the folder pane.
– Jens
Jun 6 at 5:33





No, sorry, but thanks anyway. "$f" is used as a placeholder for the currently (single) selected file/folder that is handed over to the service menu. So it is already set. The command works though in the terminal pane, but somehow it has no effect on the folder pane.
– Jens
Jun 6 at 5:33













Sorry, correction: The command works though from the terminal pane, but somehow it has no effect from within the folder pane when I call it through the service menu. The service menu itself is correct and well formatted as it should be.
– Jens
Jun 6 at 5:41




Sorry, correction: The command works though from the terminal pane, but somehow it has no effect from within the folder pane when I call it through the service menu. The service menu itself is correct and well formatted as it should be.
– Jens
Jun 6 at 5:41












I presume the trouble is that the command is executed in a new sub-shell/tty which has no effect on the calling process.
– Jens
Jun 6 at 5:47




I presume the trouble is that the command is executed in a new sub-shell/tty which has no effect on the calling process.
– Jens
Jun 6 at 5:47












Ah, you're running that code from a script? If so then yes, cd operates on a subshell which is closed when the script exits. unix.stackexchange.com/questions/27139/…
– pbhj
Jun 6 at 10:11




Ah, you're running that code from a script? If so then yes, cd operates on a subshell which is closed when the script exits. unix.stackexchange.com/questions/27139/…
– pbhj
Jun 6 at 10:11















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043995%2fkde-dolphin-how-to-change-the-current-directory-by-code-in-the-folder-pane%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043995%2fkde-dolphin-how-to-change-the-current-directory-by-code-in-the-folder-pane%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491