I may have missed a point but it looks like the pixmaps directory is hardcoded in main.c
Here is the diff I've written to use a relative path from executable, according to paths used by "make install":
diff main.c.orig main.c 10a11,13 > #include <stdlib.h> > #include <string.h> > 17a21,22 > char* path; > char* ptr; 40c45,51 < add_pixmap_directory ("pixmaps"); --- > // add_pixmap_directory ("pixmaps"); > path = calloc(sizeof(char), strlen(argv[0])+strlen("../share/pixmaps/packETH")); > strcpy(path, argv[0]); > ptr = strrchr(path, '/'); > if (!ptr) ptr = path; else ptr++; > strcpy(ptr, "../share/pixmaps/packETH"); > add_pixmap_directory (path);
Log in to post a comment.
I may have missed a point but it looks like the pixmaps directory is hardcoded in main.c
Here is the diff I've written to use a relative path from executable, according to paths used by "make install":
diff main.c.orig main.c
10a11,13
> #include <stdlib.h>
> #include <string.h>
>
17a21,22
> char* path;
> char* ptr;
40c45,51
< add_pixmap_directory ("pixmaps");
---
> // add_pixmap_directory ("pixmaps");
> path = calloc(sizeof(char), strlen(argv[0])+strlen("../share/pixmaps/packETH"));
> strcpy(path, argv[0]);
> ptr = strrchr(path, '/');
> if (!ptr) ptr = path; else ptr++;
> strcpy(ptr, "../share/pixmaps/packETH");
> add_pixmap_directory (path);