From 5445da592ef5cba4a471b92e0281b00148a4dade Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 7 Sep 2010 12:33:57 +0000 Subject: [PATCH] icondir --- src/include/gnunet_os_lib.h | 7 ++++++- src/util/os_installation.c | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h index 87d9a8fb1..bea960346 100644 --- a/src/include/gnunet_os_lib.h +++ b/src/include/gnunet_os_lib.h @@ -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 }; diff --git a/src/util/os_installation.c b/src/util/os_installation.c index 2b75a1196..ce8d0aac7 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c @@ -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; -- 2.25.1