Refactor GVFS (don't require libgio)

This commit is contained in:
Reinhard Pointner 2016-07-12 00:08:34 +08:00
parent a5eefa00b2
commit 8116b53018

View File

@ -127,12 +127,12 @@ public class FileTransferable implements Transferable {
file = GVFS.getDefaultVFS().getPathForURI(uri); file = GVFS.getDefaultVFS().getPathForURI(uri);
} }
} catch (LinkageError error) { } catch (LinkageError error) {
debug.log(Level.WARNING, "Unable to resolve GVFS URI", error); debug.log(Level.WARNING, "Unable to resolve GVFS URI: " + uri, error);
} }
} }
if (file == null || !file.exists()) { if (file == null || !file.exists()) {
throw new FileNotFoundException(file != null ? file.getPath() : line); throw new FileNotFoundException(line);
} }
files.add(file); files.add(file);