diff options
author | Mark Wagie | 2024-04-30 14:26:07 -0600 |
---|---|---|
committer | Mark Wagie | 2024-04-30 14:26:07 -0600 |
commit | adf6b46285b168c52a00946f9e9de333eeb39df5 (patch) | |
tree | 50412d3e6f8fe292de4eb2a1efe3773b8b3c1141 | |
parent | 53454fc3db05cdcfe84ce74e584fd87f3aad1de9 (diff) | |
download | aur-adf6b46285b168c52a00946f9e9de333eeb39df5.tar.gz |
use desktop-file-edit instead of sed
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -19,10 +19,12 @@ prepare() { ./"${pkgname%-bin}-$pkgver.AppImage" --appimage-extract # Correct path for .desktop file - sed -i 's|Exec=AppRun|Exec=clipto|g' "squashfs-root/${pkgname%-bin}.desktop" + desktop-file-edit --set-key=Exec --set-value="${pkgname%-bin}" \ + "squashfs-root/${pkgname%-bin}.desktop" # Remove X-AppImage-Version - sed -i '/AppImage/d' "squashfs-root/${pkgname%-bin}.desktop" + desktop-file-edit --remove-category=X-AppImage-Version \ + "squashfs-root/${pkgname%-bin}.desktop" # Remove invalid symlink rm squashfs-root/clipto.png |