KDE Dolphin: How to change the current directory by code in the folder pane?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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?
kubuntu kde dolphin
 |Â
show 2 more comments
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?
kubuntu kde dolphin
Typingf="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
 |Â
show 2 more comments
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?
kubuntu kde dolphin
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?
kubuntu kde dolphin
edited Jun 6 at 19:56
asked Jun 6 at 1:44
![](https://i.stack.imgur.com/tpg2Q.png?s=32&g=1)
![](https://i.stack.imgur.com/tpg2Q.png?s=32&g=1)
Jens
689
689
Typingf="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
 |Â
show 2 more comments
Typingf="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
 |Â
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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