From 4931d84eeef2c929014d55492ba82c8338d8e7c5 Mon Sep 17 00:00:00 2001 From: Meir Dick Date: Fri, 26 Sep 2025 15:54:36 +0000 Subject: [PATCH] Fix: Allow passing flags/arguments to omarchy-launch-webapp in launch-or-focus-webapp script This resolves the issue where extra arguments like Chromium's --profile-directory were ignored when launching a web app via omarchy-launch-or-focus-webapp. The script now uses 'shift' to isolate the window pattern ($1) and passes all remaining arguments ($@), which include the URL and flags, to the omarchy-launch-webapp function. Closes #1977 --- bin/omarchy-launch-or-focus-webapp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-launch-or-focus-webapp b/bin/omarchy-launch-or-focus-webapp index c54159f572..aa56db7359 100755 --- a/bin/omarchy-launch-or-focus-webapp +++ b/bin/omarchy-launch-or-focus-webapp @@ -1,8 +1,12 @@ #!/bin/bash if (($# == 0)); then - echo "Usage: omarchy-launch-or-focus-webapp [window-pattern] [url]" + echo "Usage: omarchy-launch-or-focus-webapp [window-pattern] [url-and-flags...]" exit 1 fi -exec omarchy-launch-or-focus "$1" "omarchy-launch-webapp '$2'" +WINDOW_PATTERN="$1" +shift +LAUNCH_COMMAND="omarchy-launch-webapp $@" + +exec omarchy-launch-or-focus "$WINDOW_PATTERN" "$LAUNCH_COMMAND" \ No newline at end of file