From a20feaf7009fec6acbc4c7bad5467390caf62cba Mon Sep 17 00:00:00 2001 From: Yutsuten Date: Sat, 8 Jul 2023 14:22:32 +0900 Subject: [PATCH 1/2] Update icons cache --- misc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 4c0617c64..d2d66ff58 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -37,6 +37,7 @@ install: gzip -n -9 -f $(MANDIR)/man1/vimiv.1 $(foreach i,$(ICONSIZES),install -Dm644 icons/vimiv_${i}x${i}.png $(DATADIR)/icons/hicolor/${i}x${i}/apps/vimiv.png;) install -Dm644 icons/vimiv.svg $(DATADIR)/icons/hicolor/scalable/apps/vimiv.svg + -gtk-update-icon-cache $(DATADIR)/icons/hicolor uninstall: scripts/uninstall_pythonpkg.sh @@ -46,6 +47,7 @@ uninstall: rm $(MANDIR)/man1/vimiv.1.gz $(foreach i,$(ICONSIZES),rm $(DATADIR)/icons/hicolor/${i}x${i}/apps/vimiv.png;) rm $(DATADIR)/icons/hicolor/scalable/apps/vimiv.svg + -gtk-update-icon-cache $(DATADIR)/icons/hicolor clean: rm -rf build vimiv.egg-info/ From 9381589d8f8154c3836a1770aa0487f488dc230c Mon Sep 17 00:00:00 2001 From: Yutsuten Date: Tue, 11 Jul 2023 21:36:46 +0900 Subject: [PATCH 2/2] Update documentation, revert Makefile --- docs/documentation/install.rst | 2 ++ docs/documentation/updating_icon_cache.rst | 6 ++++++ misc/Makefile | 2 -- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 docs/documentation/updating_icon_cache.rst diff --git a/docs/documentation/install.rst b/docs/documentation/install.rst index 8f57c7831..d34f268a8 100644 --- a/docs/documentation/install.rst +++ b/docs/documentation/install.rst @@ -81,6 +81,8 @@ should work. .. include:: dependency_info.rst +.. include:: updating_icon_cache.rst + .. _install_using_tox: Using Tox diff --git a/docs/documentation/updating_icon_cache.rst b/docs/documentation/updating_icon_cache.rst new file mode 100644 index 000000000..f1f2e2a01 --- /dev/null +++ b/docs/documentation/updating_icon_cache.rst @@ -0,0 +1,6 @@ +.. note:: + + You may need to run ``gtk-update-icon-cache /usr/share/icons/hicolor`` (replace the + path if installing the icons somewhere else) after the install to get the vimiv icon + in your application launcher. It has been reported that the command was needed for + `wofi `_. diff --git a/misc/Makefile b/misc/Makefile index d2d66ff58..4c0617c64 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -37,7 +37,6 @@ install: gzip -n -9 -f $(MANDIR)/man1/vimiv.1 $(foreach i,$(ICONSIZES),install -Dm644 icons/vimiv_${i}x${i}.png $(DATADIR)/icons/hicolor/${i}x${i}/apps/vimiv.png;) install -Dm644 icons/vimiv.svg $(DATADIR)/icons/hicolor/scalable/apps/vimiv.svg - -gtk-update-icon-cache $(DATADIR)/icons/hicolor uninstall: scripts/uninstall_pythonpkg.sh @@ -47,7 +46,6 @@ uninstall: rm $(MANDIR)/man1/vimiv.1.gz $(foreach i,$(ICONSIZES),rm $(DATADIR)/icons/hicolor/${i}x${i}/apps/vimiv.png;) rm $(DATADIR)/icons/hicolor/scalable/apps/vimiv.svg - -gtk-update-icon-cache $(DATADIR)/icons/hicolor clean: rm -rf build vimiv.egg-info/