summary refs log tree commit diff
path: root/pkgs/applications/misc/kitty/library-paths.patch
blob: 608dfb80d61f34c246fff89a4eb01f26f5c2a020 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- a/glfw/egl_context.c
+++ b/glfw/egl_context.c
@@ -314,7 +314,7 @@ bool _glfwInitEGL(void)
 #elif defined(__CYGWIN__)
         "libEGL-1.so",
 #else
-        "libEGL.so.1",
+        "@libEGL@",
 #endif
         NULL
     };

--- a/kitty/desktop.c
+++ b/kitty/desktop.c
@@ -34,10 +34,7 @@ init_x11_startup_notification(PyObject UNUSED *self, PyObject *args) {
         done = true;
 
         const char* libnames[] = {
-            "libstartup-notification-1.so",
-            // some installs are missing the .so symlink, so try the full name
-            "libstartup-notification-1.so.0",
-            "libstartup-notification-1.so.0.0.0",
+            "@libstartup_notification@",
             NULL
         };
         for (int i = 0; libnames[i]; i++) {
@@ -113,10 +110,7 @@ load_libcanberra(void) {
     if (done) return;
     done = true;
     const char* libnames[] = {
-        "libcanberra.so",
-        // some installs are missing the .so symlink, so try the full name
-        "libcanberra.so.0",
-        "libcanberra.so.0.2.5",
+        "@libcanberra@",
         NULL
     };
     for (int i = 0; libnames[i]; i++) {