Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRDP/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta <antenore@simbiosi.org>2018-04-10 01:19:40 +0300
committerAntenore Gatta <antenore@simbiosi.org>2018-04-10 01:19:40 +0300
commitff0a5fbf33fddd50f2027c0e55f3e62d31ff2f6f (patch)
treeeb2467a9f039582970be250b1b8cef270bb51bb8
parent94232e82fc3d849c891bdb5f69107cbb9b91b09d (diff)
Fixed icon installation and cachenew_res
-rw-r--r--remmina/desktop/CMakeLists.txt45
-rw-r--r--remmina/ui/remmina_about.glade7
2 files changed, 49 insertions, 3 deletions
diff --git a/remmina/desktop/CMakeLists.txt b/remmina/desktop/CMakeLists.txt
index 4335dd32c..2ee7a6f52 100644
--- a/remmina/desktop/CMakeLists.txt
+++ b/remmina/desktop/CMakeLists.txt
@@ -32,7 +32,6 @@
# version. If you delete this exception statement from all source
# files in the program, then also delete it here.
-
set(ICON16_DIR "${REMMINA_DATADIR}/icons/hicolor/16x16/apps")
set(ICON22_DIR "${REMMINA_DATADIR}/icons/hicolor/22x22/apps")
set(ICON24_DIR "${REMMINA_DATADIR}/icons/hicolor/24x24/apps")
@@ -84,6 +83,50 @@ install(FILES ${ICONSVG_DATA} DESTINATION ${ICONSVG_DIR})
set(REMMINA_BINARY_PATH ${CMAKE_INSTALL_FULL_BINDIR}/remmina)
set(REMMINA_ICON "remmina")
+find_program(XDGICON xdg-icon-resource)
+find_program(GTKICON gtk-update-icon-cache)
+find_program(XDGMENU xdg-desktop-menu)
+
+if(XDGICON)
+ message(STATUS "${XDGICON} found")
+ install(CODE "
+ MESSAGE(\"Updating icon cache.\")
+ execute_process(COMMAND ${XDGICON} install --mode system --novendor ${ICON16_DIR}/remmina.png --size 16 remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --novendor ${ICON22_DIR}/remmina.png --size 22 remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --novendor ${ICON24_DIR}/remmina.png --size 24 remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --novendor ${ICON32_DIR}/remmina.png --size 32 remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --novendor ${ICON48_DIR}/remmina.png --size 48 remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --novendor ${ICON64_DIR}/remmina.png --size 64 remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --novendor ${ICON72_DIR}/remmina.png --size 72 remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --novendor ${ICON96_DIR}/remmina.png --size 96 remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --novendor ${ICON128_DIR}/remmina.png --size 128 remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --novendor ${ICON256_DIR}/remmina.png --size 256 remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --context mimetypes ${ICON16_DIR}/remmina.png --size 16 application-x-remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --context mimetypes ${ICON22_DIR}/remmina.png --size 22 application-x-remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --context mimetypes ${ICON24_DIR}/remmina.png --size 24 application-x-remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --context mimetypes ${ICON32_DIR}/remmina.png --size 32 application-x-remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --context mimetypes ${ICON48_DIR}/remmina.png --size 48 application-x-remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --context mimetypes ${ICON64_DIR}/remmina.png --size 64 application-x-remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --context mimetypes ${ICON72_DIR}/remmina.png --size 72 application-x-remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --context mimetypes ${ICON96_DIR}/remmina.png --size 96 application-x-remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --context mimetypes ${ICON128_DIR}/remmina.png --size 128 application-x-remmina)
+ execute_process(COMMAND ${XDGICON} install --mode system --context mimetypes ${ICON256_DIR}/remmina.png --size 256 application-x-remmina)
+ ")
+else()
+ message(WARNING "Cannot update icon cache: xdg-icon-resource not found")
+endif()
+
+if(GTKICON)
+ message(STATUS "${GTKICON} found")
+ install(CODE "
+ MESSAGE(\"Updating theme icon cache.\")
+ execute_process(COMMAND ${GTKICON} -f ${REMMINA_DATADIR}/icons/hicolor)
+ ")
+else()
+ message(WARNING "Cannot update icon cache: gtk-update-icon-cache not found")
+endif()
+
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/remmina.desktop.in
${CMAKE_CURRENT_BINARY_DIR}/remmina.desktop @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/remmina-file.desktop.in
diff --git a/remmina/ui/remmina_about.glade b/remmina/ui/remmina_about.glade
index cd38683c2..485333162 100644
--- a/remmina/ui/remmina_about.glade
+++ b/remmina/ui/remmina_about.glade
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.20.0
+<!-- Generated with glade 3.22.0
Remmina - The GTK+ Remmina Remote Desktop Client
Copyright (C) Antenore Gatta & Giovanni Panozzo 2014-2018
@@ -153,7 +153,7 @@ Shuhrat Dehkanov &lt;k@efir.uz&gt;
theraser &lt;mail@hegerfeld.org&gt;
</property>
<property name="artists">Martin Lettner &lt;m.lettner@gmail.com&gt;</property>
- <property name="logo_icon_name">image-missing</property>
+ <property name="logo_icon_name">remmina</property>
<property name="license_type">gpl-2-0</property>
<child internal-child="vbox">
<object class="GtkBox" id="aboutdialog-vbox1">
@@ -177,5 +177,8 @@ theraser &lt;mail@hegerfeld.org&gt;
</child>
</object>
</child>
+ <child>
+ <placeholder/>
+ </child>
</object>
</interface>