mikepfirrmann/openfolder — pull request #7 by mwbrown (2013-07-31 20:59:20+00:00)
Title: Get dirname from paths to avoid opening files

This will fix an issue I've encountered on Linux in particular where if the filename isn't stripped off, xdg-open will try opening the file, not the directory the file is in.