We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9faea commit 9d960a5Copy full SHA for 9d960a5
1 file changed
vup/srcpkgs/editors/zed/template
@@ -1,7 +1,7 @@
1
# Template file for 'zed'
2
pkgname=zed
3
version=0.219.4
4
-revision=1
+revision=2
5
archs="x86_64 aarch64"
6
create_wrksrc=yes
7
hostmakedepends="tar"
@@ -47,8 +47,13 @@ do_install() {
47
vmkdir opt/zed
48
vcopy "${_app_dir}/*" opt/zed
49
50
- # Desktop file
51
- vinstall "${_app_dir}/share/applications/zed.desktop" 644 usr/share/applications
+ # Desktop file - modify to use absolute paths and add StartupWMClass
+ 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
57
58
# Icons
59
vcopy "${_app_dir}/share/icons" usr/share
0 commit comments