GnomeVFS now fails silently if it cannot load
This commit is contained in:
parent
5e3fec0909
commit
a463787266
@ -15,8 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
package dorkbox.util.jna.linux;
|
package dorkbox.util.jna.linux;
|
||||||
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import com.sun.jna.NativeLibrary;
|
import com.sun.jna.NativeLibrary;
|
||||||
import com.sun.jna.Pointer;
|
import com.sun.jna.Pointer;
|
||||||
|
|
||||||
@ -52,14 +50,16 @@ class GnomeVFS {
|
|||||||
|
|
||||||
if (library == null) {
|
if (library == null) {
|
||||||
// not loading :/
|
// not loading :/
|
||||||
LoggerFactory.getLogger(GnomeVFS.class).error("Error loading GnomeVFS library, it failed to load.");
|
// fail silently, because we only use this for loading URLs, and have fallbacks in place
|
||||||
|
// LoggerFactory.getLogger(GnomeVFS.class).error("Error loading GnomeVFS library, it failed to load.");
|
||||||
} else {
|
} else {
|
||||||
// must call call gnome_vfs_init()
|
// must call call gnome_vfs_init()
|
||||||
GnomeVFS.gnome_vfs_init();
|
GnomeVFS.gnome_vfs_init();
|
||||||
init = true;
|
init = true;
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
LoggerFactory.getLogger(GnomeVFS.class).error("Error loading GnomeVFS library, it failed to load {}", e.getMessage());
|
// fail silently, because we only use this for loading URLs, and have fallbacks in place
|
||||||
|
// LoggerFactory.getLogger(GnomeVFS.class).error("Error loading GnomeVFS library, it failed to load {}", e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
isInited = init;
|
isInited = init;
|
||||||
|
Loading…
Reference in New Issue
Block a user