Community
Participate
Working Groups
When you select and open a folder on linux, nautilus opens the parent of the folder. This doesn't seem like the correct behaviour. Also, to support older nautilus file managers linux is the only system that find the parent of the selection and opens it. It might be moot. One can edit the preference in Preferences>General>Workspace and switching it to something like [1] would fix the problem. PW [1] dbus-send --dest=org.freedesktop.FileManager1 /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowItems array:string:'file://${selected_resource_loc}'
I have some ideas about making the defaults more clever. Rather than just simply having a string per architecture, I'll add some intelligence to actually have an auto-detection snippet per system architecture. For windows it's probably moot, as it will always be explorer. For Linux it can check it makes sense to try detecting distribution type (cover at least RHEL and Ubuntu as most users will have these), or fall back on just checking if binary X or Y exists if distribution cannot be detected, and so on. Let me think about it a bit (I need to install CentOS in a VM so I can actually check this, as I develop on Ubuntu) and I'll get back with some code.
Actually I'd suggest looking at the desktop type rather than the distro. I can run ( for instance ) SLE with either Gnome or KDE, while having both installed. IMO the surefire way is using xdg-open, which opens the directory using the right file manager, based on some environment variables. If xdg-open is not present all the time, you can replicate the logic.
Paul: In bug 107436, you wrote that the command was changed to the simple "nautilus" version because RHEL 6.4 includes a version of Nautilus that is too old to handle the DBus command. As this feature will only get into the hands of the users when Luna is released in summer 2014, why not default to the DBus command? RHEL 7 will probably be released then and include an up-to-date version of Nautilus. People still stuck on the very old version then can change to the simpler, but less useful "nautilus file://${selected_resource_parent}" invocation. Also bear in mind that it's much easier for a user to change it to "nautilus ..." than the other way around (because the DBus call is pretty complex). By the way, the correct dbus-send invocation is [1], see [2] for why. [1] dbus-send --print-reply --dest=org.freedesktop.FileManager1 /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowItems array:string:"file://${selected_resource_loc}" string:"" [2] https://bugs.freedesktop.org/show_bug.cgi?id=52372
(In reply to Robin Stocker from comment #3) > As this feature will only get into the hands of the users when Luna is > released in summer 2014, why not default to the DBus command? RHEL 7 will > probably be released then and include an up-to-date version of Nautilus. That sounds reasonable, use the DBus option now and we can include the alternative nautilus string in the help doc. PW
Released the fix with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f407117266d9c1153ce3972fe9f2832f661de0b0 PW
in 4.4.0.I20131028-2000 PW