Skip to content

Commit 0fc451d

Browse files
committed
build(source-os): verify installed search helpers in desktop install smoke
1 parent 6598bfb commit 0fc451d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

build/office-suite/scripts/desktop_entry_install_smoke.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ mkdir -p "$HOME"
1414

1515
DESKTOP_FILE="$XDG_DATA_HOME/applications/sourceos-office.desktop"
1616
BIN_FILE="$HOME/.local/bin/sourceos-office-open"
17+
CLOUD_FILE="$HOME/.local/bin/office_cloud_handoff.sh"
18+
SEARCH_FILE="$HOME/.local/bin/office_search_handoff.sh"
19+
SEARCH_OPEN_FILE="$HOME/.local/bin/office_search_open.sh"
1720
MIME_FILE="$XDG_CONFIG_HOME/mimeapps.list"
1821

1922
[[ -f "$DESKTOP_FILE" ]] || {
@@ -26,6 +29,21 @@ MIME_FILE="$XDG_CONFIG_HOME/mimeapps.list"
2629
exit 1
2730
}
2831

32+
[[ -x "$CLOUD_FILE" ]] || {
33+
echo "desktop entry install smoke failed: missing cloud handoff helper" >&2
34+
exit 1
35+
}
36+
37+
[[ -x "$SEARCH_FILE" ]] || {
38+
echo "desktop entry install smoke failed: missing search handoff helper" >&2
39+
exit 1
40+
}
41+
42+
[[ -x "$SEARCH_OPEN_FILE" ]] || {
43+
echo "desktop entry install smoke failed: missing search open helper" >&2
44+
exit 1
45+
}
46+
2947
[[ -f "$MIME_FILE" ]] || {
3048
echo "desktop entry install smoke failed: missing MIME defaults" >&2
3149
exit 1

0 commit comments

Comments
 (0)