Bug 387710 - Get current folder path via DBUS
Summary: Get current folder path via DBUS
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 17.08.3
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-08 11:11 UTC by dufferzafar
Modified: 2021-10-24 08:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
attachment-3044-0.html (1.33 KB, text/html)
2018-04-04 08:57 UTC, dufferzafar
Details

Note You need to log in before you can comment on or make changes to this bug.
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.