From df93ab519557aebe4445d7e4fefe57b4c0fba8f3 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 7 Apr 2021 17:30:01 +1000 Subject: [PATCH] try custom AppRun --- .github/workflows/ci.yml | 3 +++ app/packaging/linux/AppRun | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 app/packaging/linux/AppRun diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bb501299..feb74cea3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,6 +83,9 @@ jobs: # Create install tree cmake --install app --prefix appdir/usr + # Inject custom AppRun (linuxdeployqt won't replace if it already exists) + cp $GITHUB_WORKSPACE/app/packaging/linux/AppRun appdir + # Process AppDir /usr/local/linuxdeployqt-x86_64.AppImage \ appdir/usr/share/applications/org.olivevideoeditor.Olive.desktop \ diff --git a/app/packaging/linux/AppRun b/app/packaging/linux/AppRun new file mode 100755 index 000000000..ddd63ced9 --- /dev/null +++ b/app/packaging/linux/AppRun @@ -0,0 +1,15 @@ +#!/bin/bash + +# Custom AppRun that ensures the AppImage doesn't dismount before olive-crashhandler exits + +# Run main program +usr/bin/olive-editor + +# Wait arbitrary amount of time +sleep 5 + +# While olive-crashhandler exists, keep sleeping +while [[ $(ps -aux | grep olive-crashhandler | grep -v grep) ]] +do + sleep 5 +done