Advertisement
Guest User

Untitled

a guest
Oct 13th, 2023
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.20 KB | None | 0 0
  1. diff --git a/src/org/p2pvpn/gui/AppIndicatorTrayIcon.java b/src/org/p2pvpn/gui/AppIndicatorTrayIcon.java
  2. index 73b9e61..b5fa23f 100644
  3. --- a/src/org/p2pvpn/gui/AppIndicatorTrayIcon.java
  4. +++ b/src/org/p2pvpn/gui/AppIndicatorTrayIcon.java
  5. @@ -59,6 +59,7 @@ public final class AppIndicatorTrayIcon extends TrayIcon {
  6.                      libname = "clib/libAppIndicatorUnknown.so";
  7.                      break;
  8.              }
  9. +            libname = "/usr/share/p2pvpn/" + libname;
  10.              File file = new File(libname);
  11.              if (file.exists()) {
  12.                  System.load(file.getCanonicalPath());
  13. diff --git a/src/org/p2pvpn/tuntap/TunTapLinux.java b/src/org/p2pvpn/tuntap/TunTapLinux.java
  14. index e361fbc..a98f6cb 100644
  15. --- a/src/org/p2pvpn/tuntap/TunTapLinux.java
  16. +++ b/src/org/p2pvpn/tuntap/TunTapLinux.java
  17. @@ -49,6 +49,7 @@ public class TunTapLinux extends TunTap {
  18.                      libname = "clib/libTunTapLinuxUnknown.so";
  19.                      break;
  20.              }
  21. +            libname = "/usr/share/p2pvpn/" + libname;
  22.              loadLib(libname);
  23.          } catch (Throwable e) {
  24.              Logger.getLogger("").log(Level.SEVERE, "Could not load tap driver library", e);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement