Bug 402046 - Tools / Start terminal here broken?
Summary: Tools / Start terminal here broken?
Status: CONFIRMED
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: 2.7.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-12-12 12:23 UTC by Adam Groszer
Modified: 2019-04-08 07:07 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Groszer 2018-12-12 12:23:11 UTC
SUMMARY

Looks like %d is not interpolated, when I put the following into Settings/Configure Krusader/General/External terminal:

/home/adi/bin/xfce4-terminal --working-directory='%d'

the terminal opens but always with my homedir

If I put 

/home/adi/bin/xfce4-terminal --working-directory='/opt'

the terminal opens with /opt


SOFTWARE/OS VERSIONS
Linux: Xubuntu 18.04: 

ii  libplasma3                                    4:4.14.38-0ubuntu3                     amd64        Plasma Library for the KDE Platform
ii  kde-runtime                                   4:17.08.3-0ubuntu1                     amd64        runtime components from the official KDE release
ii  libqt5core5a:amd64                            5.9.5+dfsg-0ubuntu1                    amd64        Qt 5 core module
Comment 1 Adam Groszer 2018-12-12 12:28:18 UTC
Useractions for the rescue
Comment 2 Nikita Melnichenko 2019-01-19 05:52:13 UTC
It seems to be working fine. Try to put "kdialog --msgbox %d" in this setting and you should see a dialog with a current dir. If not, let us know and reopen the bug.
Comment 3 Bug Janitor Service 2019-02-03 04:33:07 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2019-02-18 04:33:08 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 5 paul 2019-03-31 18:06:38 UTC
I'd like to confirm:

"kdialog --msgbox %d" does show the correct path.
"konsole --workdir=%d" -> does *not* work
"konsole --workdir %d" -> does work

Although when run from the terminal or krunner, both variations (with and without "=") work.
Testing with other terminals also suggests that indeed the equals sign = is the cause of why %d is not parsed correctly in the original bug report.

Probably not really worth fixing, but then I'd suggest adding this command as example to Krusader, next to the explanation what %d is expanded to.

--- Software versions
Operating System: Arch Linux 
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Kernel Version: 5.0.5-arch1-1-ARCH
OS Type: 64-bit
Comment 6 paul 2019-03-31 18:10:30 UTC
(In reply to paul from comment #5)
> --- Software versions
> Operating System: Arch Linux 
> KDE Plasma Version: 5.15.3
> KDE Frameworks Version: 5.56.0
> Qt Version: 5.12.2
> Kernel Version: 5.0.5-arch1-1-ARCH
> OS Type: 64-bit
 and Krusader version 2.7.1-1
Comment 7 Adam Groszer 2019-04-01 06:22:07 UTC
+1 on at least adding as doc
Comment 8 Nikita Melnichenko 2019-04-08 07:07:16 UTC
Ok, "kdialog --msgbox=%d" does not work as well. Yes, it's a bug and should be fixed.