diff --git a/app_containers/.local/bin/run_app_container b/app_containers/.local/bin/run_app_container index 0d08a15..7f7e7e8 100755 --- a/app_containers/.local/bin/run_app_container +++ b/app_containers/.local/bin/run_app_container @@ -29,6 +29,10 @@ if [ -f "$config" ]; then source "$config" fi +# Kill any previously running instances +# This could be due to, say, a broken libappindicator icon (because of broken dbus) +sudo -A machinectl kill $CONTAINER_NAME > /dev/null 2>&1 + # Create a XDG_RUNTIME_DIR for guest on host container_xdg_runtime="$(mktemp -d -p /var/tmp)" trap cleanup EXIT