Bug 387710

Summary: Get current folder path via DBUS
Product: [Applications] dolphin Reporter: dufferzafar <dufferzafar0>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: elvis.angelaccio, kde, richard9404
Priority: NOR    
Version First Reported In: 17.08.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: attachment-3044-0.html

Description dufferzafar 2017-12-08 11:11:20 UTC
We should have a DBUS property that gives the current folder path.

This will allow scripts to extract the path and use it.
Comment 1 Kai Uwe Broulik 2018-04-04 08:44:49 UTC
How should it behave in case of split view or tabs? or just export the path of the currently focussed view?
Comment 2 dufferzafar 2018-04-04 08:57:13 UTC
Created attachment 111811 [details]
attachment-3044-0.html

Yes, that would be the most reasonable default.

On Wed 4 Apr, 2018, 2:14 PM Kai Uwe Broulik, <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=387710
>
> Kai Uwe Broulik <kde@privat.broulik.de> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |kde@privat.broulik.de
>
> --- Comment #1 from Kai Uwe Broulik <kde@privat.broulik.de> ---
> How should it behave in case of split view or tabs? or just export the
> path of
> the currently focussed view?
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 richard9404 2021-10-24 08:57:49 UTC
I find this could be useful as well.
Some OSX shell plugins provide a `cdf` shell command that allows the users to jump into the folder they just opened in Finder. Like this one:
https://github.com/ohmyzsh/ohmyzsh/blob/f1dd97bb2a9df55fae9b1ca26c829b9f8b290667/plugins/osx/osx.plugin.zsh#L194
The motivation is that navigation in a huge directory tree might be much more convenient with GUI, while batch/complex operations should be performed with the command line, but launching a new terminal emulator window is not an option because the user might already have a resident terminal session with enviroment properly set up.
Such a command save a copy-paste of the path, and should be easily implemented if the path can be retrieve via DBUS.