[dolphin] [Bug 436584] dolphin --select

Nate Graham bugzilla_noreply at kde.org
Tue May 4 15:12:12 BST 2021


https://bugs.kde.org/show_bug.cgi?id=436584

Nate Graham <nate at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |NEEDSINFO
         Resolution|---                         |WAITINGFORINFO
                 CC|                            |nate at kde.org

--- Comment #1 from Nate Graham <nate at kde.org> ---
(In reply to the.betrayer64 from comment #0)
> 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());
If you're using KDE Frameworks (specifically, KIO), you can include
KIO/OpenFileManagerWindowJob and do:

KIO::highlightInFileManager({QUrl(info.canonicalFilePath())})

Does that suffice?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list