diff options
-rw-r--r-- | config/grc_grc.m4 | 3 | ||||
-rw-r--r-- | grc/Makefile.am | 7 | ||||
-rw-r--r-- | grc/freedesktop/README | 20 |
3 files changed, 28 insertions, 2 deletions
diff --git a/config/grc_grc.m4 b/config/grc_grc.m4 index f02923f16..b5ae52cee 100644 --- a/config/grc_grc.m4 +++ b/config/grc_grc.m4 @@ -22,7 +22,8 @@ AC_DEFUN([GRC_GRC],[ GRC_CHECK_DEPENDENCY(grc, gr-wxgui) - AC_CHECK_PROG(XDG_UTILS,xdg-mime,freedesktop,) + AC_CHECK_PROG(XDG_UTILS, xdg-mime, true, false) + AM_CONDITIONAL(XDG_UTILS, $XDG_UTILS) dnl ######################################## dnl # test python dependencies diff --git a/grc/Makefile.am b/grc/Makefile.am index 8b77fc31a..7f62f39b6 100644 --- a/grc/Makefile.am +++ b/grc/Makefile.am @@ -21,8 +21,13 @@ include $(top_srcdir)/grc/Makefile.inc -SUBDIRS = $(XDG_UTILS) \ +SUBDIRS = \ data \ examples \ scripts \ src + +## append freedesktop to the list of subdirs when xdg utils are present +if XDG_UTILS +SUBDIRS += freedesktop +endif diff --git a/grc/freedesktop/README b/grc/freedesktop/README new file mode 100644 index 000000000..0857ecc22 --- /dev/null +++ b/grc/freedesktop/README @@ -0,0 +1,20 @@ +################################################## +# Freedesktop Notes +################################################## + +This directory contains icons, a mime type, and menu files for grc. +Installation of these files requires a set of tools called xdg-utils. +xdg-utils will install files in a standard way according to the freedesktop.org standards. + +Desktop enviroments that implement these standards are gnome, kde, xfce, and others. +If you have one of these desktop enviroments, xdg-utils should come installed. +If xdg-utils is not installed, then this directory will be ignored by the build. + +The gtk IconTheme module locates the installed icons for use inside the grc app. +On recent versions of gtk, IconTheme ignores the icons installed into the default theme. +This presents a problem for the gnome file system browser, nautilus, and the grc app. +As a solution, icons are also installed under the gnome theme. + +*.png files - these are the icons of various sizes +*.desktop files - these are the menu items for grc executables +*.xml file - this is the mime type for the saved flow graphs |