From 3e726bd1ee30d4fdbadfe6d5b01ba14cebdac420 Mon Sep 17 00:00:00 2001 From: wheaney <42350981+wheaney@users.noreply.github.com> Date: Mon, 25 Aug 2025 15:34:13 -0700 Subject: [PATCH] Clean up setup messaging, add steamos detection to setup script --- bin/breezy_kwin_setup | 6 ++++++ kwin/bin/setup | 5 ++++- kwin/src/breezydesktopeffect.cpp | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/breezy_kwin_setup b/bin/breezy_kwin_setup index dcec99f..ac35d7e 100755 --- a/bin/breezy_kwin_setup +++ b/bin/breezy_kwin_setup @@ -21,6 +21,12 @@ check_command() { check_command "curl" ARCH=$(uname -m) +if [ -f /etc/os-release ]; then + . /etc/os-release + if [ "$ID" == "steamos" ]; then + ARCH="steamos" + fi +fi FILE_NAME="breezyKWin-$ARCH.tar.gz" LATEST_RELEASE=$(curl -s "https://api.github.com/repos/wheaney/breezy-desktop/releases/latest") echo "Performing setup for KWin ($ARCH)" diff --git a/kwin/bin/setup b/kwin/bin/setup index a552f41..086ee50 100755 --- a/kwin/bin/setup +++ b/kwin/bin/setup @@ -45,6 +45,8 @@ UA_EVENT_VERSION="$1" tar -xf $(pwd)/breezyKWinPlugin.tar.gz pushd breezy_desktop/usr > /dev/null +echo "Copying KWin plugin files to $USER_HOME/.local/{lib,share}" + # locate the lib path that ends with qt6/plugins (handles multiarch dirs) QT_PLUGIN_DIR_RELATIVE=$(find lib -type d -path '*/qt6/plugins' -print -quit 2>/dev/null || true) if [ -z "$QT_PLUGIN_DIR_RELATIVE" ]; then @@ -55,7 +57,7 @@ fi chmod -R 755 . cp -r . "$USER_HOME/.local/" -popd +popd > /dev/null cp bin/breezy_kwin_uninstall $XDG_BIN_HOME @@ -64,6 +66,7 @@ BASH_PROFILE="$HOME/.bash_profile" QT_PLUGIN_DIR="$HOME/.local/$QT_PLUGIN_DIR_RELATIVE" QT_PLUGIN_EXPORT="export QT_PLUGIN_PATH=\"$QT_PLUGIN_DIR\"" if [[ ! -f "$BASH_PROFILE" ]] || ! grep -Fq "$QT_PLUGIN_EXPORT" "$BASH_PROFILE" 2>/dev/null; then + echo "Adding QT_PLUGIN_PATH to $BASH_PROFILE" mkdir -p "$(dirname "$BASH_PROFILE")" cat >> "$BASH_PROFILE" < 60290 + #if defined(KWIN_VERSION_ENCODED) && KWIN_VERSION_ENCODED >= 60290 QString description = QStringLiteral("Breezy Display %1x%2 (%3)").arg(size.width()).arg(size.height()).arg(virtualDisplayCount); auto output = KWin::kwinApp()->outputBackend()->createVirtualOutput(name, description, size, 1.0); #else