This is a patch file for "gelemental" 1.2.0. This file is distro-specific. In particular, it uses the meta-symbol __META_PREFIX__, which is translated by the local "build" system. If you'd like to use this file under a standard distro, replace __META_ PREFIX__ with the "install" prefix that you're using for the package [/opt/gelemental, etc.]. If the "install" prefix is "/usr" or "/usr/local", this file probably isn't necessary. However, if you're using a non-standard "install" prefix [such as /opt/gelemental], the change made below may help the program to locate its icons. --- gelemental-1.2.0.old/src/main.cc +++ gelemental-1.2.0/src/main.cc @@ -46,6 +46,21 @@ int main (int argc, char** argv) { + char *cp; + char *dm; + +//------------------------------------------------------------------- +// Help program to find icons. + + cp = getenv ("XDG_DATA_DIRS"); + if (cp == NULL) cp = ""; + dm = (char *) malloc (strlen (cp) + 512); + if (dm == NULL) exit (1); + sprintf (dm, "XDG_DATA_DIRS=%s:%s", "__META_PREFIX__/share", cp); + putenv (dm); + +//-------------------------------------------------------------------- + return gElemental::main (argc, argv); }