spotify: Fix missing icon in KDE task manager

Spotify onlys get a generic "X11" icon in the task manager. No window title is
shown either.

Previously, the template moved the icons. Symlink /usr/share/spotify/icons
to /usr/libexec/spotify/icons so spotify finds the icons again.

This makes the spotify icon appear in the KDE taskbar. It also sets the
title of the spotify window.

Fixes: #36615
This commit is contained in:
Albert Schwarzkopf 2022-12-03 21:20:03 +01:00 committed by classabbyamp
parent 8ba8a345d5
commit 393e635865
1 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'spotify'
pkgname=spotify
version=1.1.84
revision=3
revision=4
archs="x86_64"
create_wrksrc=yes
hostmakedepends="curl w3m libcurl"
@ -36,8 +36,7 @@ do_install() {
vmkdir usr/libexec/
vcopy usr/share/spotify usr/libexec/
# move icons to /usr/share
mv "${DESTDIR}/usr/libexec/spotify/icons" "${DESTDIR}/usr/share/spotify/"
ln -s "../../libexec/spotify/icons" "${DESTDIR}/usr/share/spotify/"
# install icons
for _s in 16 22 24 32 48 64 128 256 512; do