icondir
authorChristian Grothoff <christian@grothoff.org>
Tue, 7 Sep 2010 12:33:57 +0000 (12:33 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 7 Sep 2010 12:33:57 +0000 (12:33 +0000)
src/include/gnunet_os_lib.h
src/util/os_installation.c

index 87d9a8fb1700a438f704b4360a50bee306c3b2bb..bea96034616c0489476fa936ac0556260ebba52e 100644 (file)
@@ -80,7 +80,12 @@ enum GNUNET_OS_InstallationPathKind
    * the one of the overall GNUnet installation (in case they
    * are different).
    */
-  GNUNET_OS_IPK_SELF_PREFIX
+  GNUNET_OS_IPK_SELF_PREFIX,
+
+  /**
+   * Return the prefix of the path with application icons.
+   */
+  GNUNET_OS_IPK_ICONDIR
 };
 
 
index 2b75a11961febac3895e21a96a5f7b7ec2ee9508..ce8d0aac79405baca4ae4e32f0e3ca37769a3e15 100644 (file)
@@ -416,6 +416,10 @@ GNUNET_OS_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind)
         DIR_SEPARATOR_STR "share" DIR_SEPARATOR_STR "locale"
         DIR_SEPARATOR_STR;
       break;
+    case GNUNET_OS_IPK_ICONDIR:
+      dirname =
+        DIR_SEPARATOR_STR "share" DIR_SEPARATOR_STR "icons" DIR_SEPARATOR_STR;
+      break;
     default:
       GNUNET_free (execpath);
       return NULL;