This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Select file in folder

Tags: None
(comma "," separated)
Axtroz
Registered Member
Posts
3
Karma
0

Select file in folder

Wed Dec 03, 2014 3:54 pm
Hi there,
When you try to navigate to a file in Mac OSX Finder, the program opens the containing folder and selects the file. In dolphin with KDE 4.13.3, you get a dolphin window that shows you're in a folder with the name of the file and then the registered handler for that file gets called. Is is possible to implement this functionality or there's something in the bigger picture that prevents it or advises against it?

Thanks!
freininghaus
Moderator
Posts
224
Karma
1
OS

Re: Select file in folder  Topic is solved

Thu Dec 04, 2014 9:13 pm
You haven't told us how you try to open the file with Dolphin - I assume that you start Dolphin from the command line and pass the file name as a parameter? Maybe
Code: Select all
dolphin --select /path/to/file

is what you want?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Select file in folder

Mon Dec 08, 2014 7:24 am
If you are looking to use this in a script or similar, then you might want to look into the following utility, which is included in kde-runtime.
Code: Select all
kdialog


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Axtroz
Registered Member
Posts
3
Karma
0

Re: Select file in folder

Wed Dec 10, 2014 11:13 am
Thank you both for your answers, I didn't know about the
Code: Select all
--select
flag. I have a script, based on KDialog that converts files and in the end I want to be able to select them in the file manager. Tried with
Code: Select all
dolphin <filename>
but that produced the behavior that I've described in the first post.
Code: Select all
--select
works perfectly for my needs, thanks!


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, sethaaaa, Sogou [Bot], Yahoo [Bot]