From 29b43fcc51b302a5732936321ae3dc95ef55728b Mon Sep 17 00:00:00 2001 From: xpamych Date: Sun, 8 Jan 2023 14:02:39 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20KDE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- telegram-desktop-bin/lure.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/telegram-desktop-bin/lure.sh b/telegram-desktop-bin/lure.sh index 991aa63..839cea3 100755 --- a/telegram-desktop-bin/lure.sh +++ b/telegram-desktop-bin/lure.sh @@ -49,11 +49,13 @@ package() { install -Dm644 "${srcdir}/icon256.png" "${pkgdir}/usr/share/pixmaps/telegram.png" install -Dm644 "${scriptdir}/${name}.desktop" "${pkgdir}/usr/share/applications/telegramdesktop.desktop" - # KDE5 & KDE4 protocol file - install -d "${pkgdir}/usr/share/kservices5" + # KDE5 & KDE4 protocol file + if $XDG_CURRENT_DESKTOP = KDE; then + install -d "${pkgdir}/usr/share/kservices5" install -d "${pkgdir}/usr/share/kde4/services" install -m644 "${scriptdir}/tg.protocol" "${pkgdir}/usr/share/kservices5/tg.protocol" ln -s "/usr/share/kservices5/tg.protocol" "${pkgdir}/usr/share/kde4/services" + fi # Icons local icon_size icon_dir