Skip to content

Commit 9d960a5

Browse files
committed
Bump zed revision; fix desktop path
1 parent 0e9faea commit 9d960a5

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

vup/srcpkgs/editors/zed/template

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Template file for 'zed'
22
pkgname=zed
33
version=0.219.4
4-
revision=1
4+
revision=2
55
archs="x86_64 aarch64"
66
create_wrksrc=yes
77
hostmakedepends="tar"
@@ -47,8 +47,13 @@ do_install() {
4747
vmkdir opt/zed
4848
vcopy "${_app_dir}/*" opt/zed
4949

50-
# Desktop file
51-
vinstall "${_app_dir}/share/applications/zed.desktop" 644 usr/share/applications
50+
# Desktop file - modify to use absolute paths and add StartupWMClass
51+
cp "${_app_dir}/share/applications/zed.desktop" zed.desktop
52+
vsed -i zed.desktop \
53+
-e "s#^Exec=zed#Exec=/usr/bin/zed#g" \
54+
-e "s#^TryExec=zed#TryExec=/usr/bin/zed#g" \
55+
-e "/^StartupNotify=true/a StartupWMClass=dev.zed.Zed"
56+
vinstall zed.desktop 644 usr/share/applications
5257

5358
# Icons
5459
vcopy "${_app_dir}/share/icons" usr/share

0 commit comments

Comments
 (0)