# HG changeset patch # User Michael Pavone # Date 1698001073 25200 # Node ID 12d594e69e0421e3fcca7916d7788145ea24f218 # Parent 94cf5cc8922770d463abdee62f0decb409b45612 Don't use absolute paths for GTK so things work across distros without extra work diff -r 94cf5cc89227 -r 12d594e69e04 nuklear_ui/filechooser_gtk.c --- a/nuklear_ui/filechooser_gtk.c Sat Oct 21 19:22:01 2023 -0700 +++ b/nuklear_ui/filechooser_gtk.c Sun Oct 22 11:57:53 2023 -0700 @@ -38,15 +38,8 @@ static gtk* check_init_gtk(void) { static const char *so_paths[] = { -#ifdef X86_64 - "/usr/lib/x86_64-linux-gnu/libgtk-3.so.0", - "/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0", -#elif X86_32 - "/usr/lib/i386-linux-gnu/libgtk-3.so.0", - "/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0", -#else - //TODO: what are these paths on ARM? -#endif + "libgtk-3.so.0", + "libgtk-x11-2.0.so.0", }; static gtk *funcs; static uint8_t already_init;