Closed kaloyan-raev closed 6 years ago
Does F25 have access to gvfs-open
? Edit: removed path. If yes, can you let me know it's full path so I can add an exclusion rule?
I've pushed the latest changes as well -- i've removed access via GnomeVFS.gnome_vfs_url_show_with_env()
(it was buggy in other weird ways) and now it is pretty much exclusively via a shell command (which, is also buggy in weird ways, but I can at least work around some of them)
$ ls -l /usr/bin/gvfs-open
-rwxr-xr-x 1 root root 277 Jul 19 18:26 /usr/bin/gvfs-open
$ which gvfs-open
/usr/bin/gvfs-open
I have Fedora 25 with VSCode installed on it.
If, for example, I invoke
Desktop.browseDirectory("/home/user/some-dir")
, it will open an empty file with name~/git/my-test-app/file:/home/user/some-dir
in VSCode instead of opening/home/user/some-dir
in the file browser.I've done some debugging and it seems that the issue is a combination of:
file://
to the file path: https://github.com/dorkbox/Utilities/blob/master/src/dorkbox/util/Desktop.java#L175-L182GnomeVFS.gnome_vfs_url_show_with_env()
: https://github.com/dorkbox/Utilities/blob/master/src/dorkbox/util/Desktop.java#L216If any of the above is eliminated, the
browseDirectory()
works properly.