dorkbox / Utilities

Dorkbox General Utilities
Other
7 stars 3 forks source link

Desktop.browseDirectory() does not work properly on Fedora #3

Closed kaloyan-raev closed 6 years ago

kaloyan-raev commented 6 years ago

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:

If any of the above is eliminated, the browseDirectory() works properly.

dorkbox commented 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?

dorkbox commented 6 years ago

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)

kaloyan-raev commented 6 years ago
$ 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