Commit 9b46bc5c authored by Ghislain MARY's avatar Ghislain MARY

Correct handling of application icons.

parent d97e1079
......@@ -429,6 +429,9 @@ install(FILES "${ASSETS_DIR}/images/linphone_logo.svg"
DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps/"
RENAME "linphone.svg"
)
install(DIRECTORY "${ASSETS_DIR}/icons/hicolor"
DESTINATION "${CMAKE_INSTALL_DATADIR}/icons"
)
# ------------------------------------------------------------------------------
# Install rc files.
......
#!/usr/bin/bash
for i in 16 22 24 32 64 128
do
mkdir -p hicolor/${i}x${i}/apps
inkscape -z -e hicolor/${i}x${i}/apps/linphone.png -w $i -h $i ../images/linphone_logo.svg
done
......@@ -59,12 +59,18 @@ rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
xdg-icon-resource install --novendor --mode system --theme hicolor --context apps --size scalable %{_datarootdir}/icons/hicolor/scalable/apps/linphone.svg linphone;
for i in 16 22 24 32 64 128
do
xdg-icon-resource install --novendor --mode system --theme hicolor --context apps --size $i %{_datarootdir}/icons/hicolor/${i}x${i}/apps/linphone.png linphone
done
xdg-desktop-menu install --novendor --mode system %{_datarootdir}/applications/linphone.desktop
%postun
xdg-desktop-menu uninstall --mode system --theme hicolor --context apps --size scalable linphone.desktop
xdg-icon-resource uninstall --mode system linphone
xdg-desktop-menu uninstall --mode system linphone.desktop
for i in 16 22 24 32 64 128
do
xdg-icon-resource uninstall --mode system --theme hicolor --context apps --size $i linphone
done
/sbin/ldconfig
%files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment