Showing a file in the file manager

Bastien Nocera hadess at hadess.net
Thu May 19 17:24:55 PDT 2011


On Thu, 2011-05-19 at 14:15 -0500, Federico Mena Quintero wrote:
> Hi, everyone,
> 
> We are starting to add a command "Show in file manager" to apps that let
> you open files (text editor, image viewer, word processor, etc.).  This
> is similar to the command that Firefox has in the right-click menu in
> its Downloads list.
> 
> In Gnome you can do
> 
> 	nautilus file:///foo/bar.txt
> 
> and it will open a window to show the "foo" directory, with the
> "bar.txt" file selected.
> 
> From [1] I can see that KDE wants you to do
> 
> 	dolphin --select file:///foo/bar.txt
> 
> And I don't know what other desktop environments use to do the same
> task.
> 
> Currently xdg-open doesn't support this.  Should we just add an
> --in-file-manager option so that you can do
> 
> 	xdg-open --in-file-manager file:///blah.txt
> 
> What do you think?

Could we not standardise on a D-Bus interface for that instead of a
horrible hack of a shell script?



More information about the xdg mailing list