From 487de08560e7a196b988c32585f862d196cb9963 Mon Sep 17 00:00:00 2001 From: imluketheduke Date: Fri, 11 Sep 2026 19:39:39 -0600 Subject: [PATCH] fix(install): fail honestly when Dropbox cannot be installed omarchy-install-service-dropbox enabled the omarchy.dropbox bar widget even when every package it asked for was skipped by the repos filter, leaving a widget that reports "Dropbox CLI is not installed" forever. The dropbox daemon has no aarch64 build, so when dropbox-cli is neither installed nor repo-installable, say so and exit before touching the bar. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- bin/omarchy-install-service-dropbox | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/omarchy-install-service-dropbox b/bin/omarchy-install-service-dropbox index 604ccd875a9..5e6f8036e24 100755 --- a/bin/omarchy-install-service-dropbox +++ b/bin/omarchy-install-service-dropbox @@ -2,6 +2,16 @@ # omarchy:summary=Install and start the Dropbox service. Must then be authenticated via the web. +set -e + +# Everything below needs dropbox-cli, which only exists as an AUR package built +# around Dropbox's x86_64-only daemon. When the repos cannot serve it there is +# no Dropbox to start — say so instead of enabling a bar widget for nothing. +if ! omarchy-pkg-present dropbox-cli && ! pacman -Si dropbox-cli &>/dev/null; then + echo "Dropbox is not available on this system (no aarch64 build exists)." + exit 1 +fi + echo "Installing all dependencies..." omarchy-pkg-add dropbox dropbox-cli libappindicator-gtk3 python-gpgme nautilus-dropbox