[dolphin] [Bug 436584] New: dolphin --select
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Tue May 4 14:49:24 BST 2021
https://bugs.kde.org/show_bug.cgi?id=436584
Bug ID: 436584
Summary: dolphin --select
Product: dolphin
Version: 21.04.0
Platform: Archlinux Packages
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: general
Assignee: dolphin-bugs-null at kde.org
Reporter: the.betrayer64 at gmail.com
CC: kfm-devel at kde.org
Target Milestone: ---
Created attachment 138143
--> https://bugs.kde.org/attachment.cgi?id=138143&action=edit
Screenshot of how it looks
SUMMARY
There is a way to start Dolphin from console, for example.
There is a key "--select" in dolphin command which is supposed to select file
paths that are following that command.
Let's say I have a file /home/user/Downloads/picture.jpg
If I type in console "dolphin --select /home/user/Downloads/picture.jpg" AND
have a running instance of Dolphin everything is going to work just perfect.
But if I close all instances of Dolphin on my PC and do the same console
launch
the same command - then DOlphin is going to open a file as an empty folder,
and, also open that file in gwenview
You might ask "why do you even need to launch Dolphin from console"? My answer
is that I'm trying to make a "Reveal in Finder" kind of feature in my program,
so I'm launching it from the following code:
QProcess proc;
proc.startDetached("dolphin", QStringList() << "--select" <<
info.canonicalFilePath());
STEPS TO REPRODUCE
1. Close all Dolphin instances
2. Type in console "dolphin --select ~/.bashrc"
OBSERVED RESULT
Dolphin is going to open .bashrc file as if was an empty folder and also run
kate on this file
EXPECTED RESULT
Dolphin would open home folder and select there .bashrc file if it's visible
SOFTWARE/OS VERSIONS
Windows:
macOS:
Linux/KDE Plasma: Archlinux
(available in About System)
KDE Plasma Version: 5.21.04
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the kfm-devel
mailing list