Keep new browser windows on current workspace
This commit is contained in:
@@ -36,6 +36,18 @@ chmod +x "$mock_bin"/*
|
||||
|
||||
launch_log="$test_tmp/launch"
|
||||
focus_log="$test_tmp/focus"
|
||||
HOME="$test_home" PATH="$mock_bin:$PATH" HYPRLAND_INSTANCE_SIGNATURE=test \
|
||||
OMARCHY_TEST_BROWSER_LAUNCH="$launch_log" OMARCHY_TEST_BROWSER_FOCUS="$focus_log" \
|
||||
bash "$ROOT/bin/omarchy-launch-browser"
|
||||
|
||||
[[ ! -e $focus_log ]] || fail "browser launcher leaves a new window on the current workspace"
|
||||
|
||||
HOME="$test_home" PATH="$mock_bin:$PATH" HYPRLAND_INSTANCE_SIGNATURE=test \
|
||||
OMARCHY_TEST_BROWSER_LAUNCH="$launch_log" OMARCHY_TEST_BROWSER_FOCUS="$focus_log" \
|
||||
bash "$ROOT/bin/omarchy-launch-browser" --private
|
||||
|
||||
[[ ! -e $focus_log ]] || fail "private browser launcher leaves a new window on the current workspace"
|
||||
|
||||
HOME="$test_home" PATH="$mock_bin:$PATH" HYPRLAND_INSTANCE_SIGNATURE=test \
|
||||
OMARCHY_TEST_BROWSER_LAUNCH="$launch_log" OMARCHY_TEST_BROWSER_FOCUS="$focus_log" \
|
||||
bash "$ROOT/bin/omarchy-launch-browser" "https://example.test/authorize"
|
||||
|
||||
Reference in New Issue
Block a user