Volker Schroer 39da83c61d The uninstall script did not remove the previously installed freedesktop icons and desktop files.
Now grc_setup_freedesktop uninstall is called in cmake_uninstall.cmake

As far as I can see the icon and menu files are only needed in the freedesktop environment.
It's not necessary to put them into gnuradio install path.

So I removed these copies and installed these files directly from the source directory
using xdg-icon-resource and other xdg-utils.

Giving grc_setup_freedesktop execute permissions in the build directory avoids copying it
to the libexec directory. So even if ENABLE_POSTINSTALL=ON no libexec directory will be created.

Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
2023-03-11 16:13:45 -08:00
..
2020-10-28 13:44:40 -04:00

##################################################
# 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 environments that implement these standards are gnome, kde, xfce, and others.
If you have one of these desktop environments, 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
*.yml (*.xml) file - this is the mime type for the saved flow graphs (and legacy flow graphs)