diff options
author | thynkon | 2022-01-13 18:17:17 +0100 |
---|---|---|
committer | thynkon | 2022-01-13 18:21:07 +0100 |
commit | 6a78e7f3d62644898f96013a1852af760f33d92e (patch) | |
tree | 8f6f5535dcf0f7e0625c5c7b10c2eb4168766a4a | |
parent | 48330b33d11d8eb9320bd1ad9dc4aee75affebf7 (diff) | |
download | aur-6a78e7f3d62644898f96013a1852af760f33d92e.tar.gz |
Fix desktop file problem while setting environment variable
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = joplin-appimage pkgdesc = The latest stable AppImage of Joplin - a cross-platform note taking and to-do app pkgver = 2.6.10 - pkgrel = 4 + pkgrel = 5 url = https://github.com/laurent22/joplin arch = x86_64 license = MIT @@ -2,7 +2,7 @@ pkgname=joplin-appimage pkgver=2.6.10 -pkgrel=4 +pkgrel=5 pkgdesc="The latest stable AppImage of Joplin - a cross-platform note taking and to-do app" arch=('x86_64') url="https://github.com/laurent22/joplin" @@ -30,8 +30,8 @@ package() { mkdir -p squashfs-root/usr/share/icons/hicolor/{72x72,16x16}/apps ./${_filename} --appimage-extract "usr/share/icons/hicolor/*/apps/@joplinapp-desktop.png" > /dev/null 2>&1 ./${_filename} --appimage-extract @joplinapp-desktop.desktop > /dev/null 2>&1 - sed -i -E "s|Exec=AppRun|Exec=${_install_path}|" squashfs-root/@joplinapp-desktop.desktop - sed -i -E "s|Icon=joplin|Icon=@joplinapp-desktop|" squashfs-root/@joplinapp-desktop.desktop + sed -i -E "s|Exec=AppRun|Exec=${_install_path}|" "squashfs-root/${_squashfs_desktop_file}" + sed -i -E "s|Icon=joplin|Icon=@joplinapp-desktop|" "squashfs-root/${_squashfs_desktop_file}" # install icons install -dm755 "${pkgdir}/usr/share/icons" @@ -42,7 +42,7 @@ package() { # install .desktop file and image file # disable AppimageLauncher integration prompt # https://github.com/TheAssassin/AppImageLauncher/issues/78#issuecomment-466390939 - sed -i -E "s|Exec=${_install_path}|Exec=APPIMAGELAUNCHER_DISABLE=1 /usr/bin/joplin-desktop|" "squashfs-root/${_squashfs_desktop_file}" + sed -i -E "s|Exec=${_install_path}|Exec=env APPIMAGELAUNCHER_DISABLE=1 /usr/bin/joplin-desktop|" "squashfs-root/${_squashfs_desktop_file}" install -Dm644 "squashfs-root/${_squashfs_desktop_file}" "${pkgdir}/${_desktop_file}" install -Dm755 "${_filename}" "${pkgdir}/${_install_path}" mkdir "${pkgdir}/usr/bin/" && chmod 755 "${pkgdir}/usr/bin/" |