Page MenuHomePhabricator

enlightenment_filemanager <file> should open the file directory and select the file instead of {calling xdg-open?}
Closed, WontfixPublic


When calling enlightenment_filemanager /usr/bin the filemanager gets opened and shows me the content of /usr/bin.

When calling enlightenment_filemanager /usr/bin/xterm I would expect that it does the same, but selects the file xterm in that directory.
However what it does is executing the executable xterm. If a specify a non-executable file, e.g. /etc/fstab then (in my case) a terminology window with vim gets opened for the the specified file.

This is a very annoying and unexpected behaviour.

I assume that the same call is used internally in enlightenment_filemanager when opening a file (or directory), but I think there should obviously be a difference when double clicking on a file or directory inside efm and when calling efm with a file as argument.

I have tried other filemanagers and found that some have the same strange behaviour (pcmanfm, thunar), but some others behave like I expect (nautilus, double commander, worker). I found the behaviour of dolphin even more strange. It opens the filemanager in the given files directory and _additionally_ calls xdg-open on the given file.

But I think selecting the given file (if a file, not a directory) is the sanes behaviour. Especially when the given file is an executable!

hupfdule created this task.Jul 12 2019, 1:49 AM
ProhtMeyhet triaged this task as Wishlist priority.Aug 7 2019, 2:55 AM
raster closed this task as Wontfix.Aug 12 2021, 5:19 AM
raster claimed this task.
raster added a subscriber: raster.

enlightemnent_open is called by xdg-open and xdg-open is meant to open any file base on mime type -= ie a dir will come up in the file manager, a jpeg will use whatever image viewer is known to handle that like you double-click the jpeg in efm ... and thus executables like xterm will be EXECUTED. thats how it's meant to work. enlightenment_open does what would happen if you double-licked on that file icon. so it's doing exactly what it is intended to do.