Skip to content

Commit 95821e8

Browse files
committed
fix(xfreerdp): try --list-kbd as last resort
This is the only option that seems to work in xfreerdp 1.0.2, which is what comes with ubuntu 14.04. Follow up to #1373
1 parent 9f5aedb commit 95821e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

completions/xfreerdp

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ _comp_cmd_xfreerdp__kbd_list()
77
kbd_list=$("$1" /list:kbd 2>/dev/null) ||
88
# Old syntax, deprecated in 2022-10-19
99
# See https://github.com/FreeRDP/FreeRDP/commit/119b8d4474ab8578101f86226e0d20a53460dd51
10-
kbd_list=$("$1" /kbd-list 2>/dev/null)
10+
kbd_list=$("$1" /kbd-list 2>/dev/null) ||
11+
# This was removed in 2013, see https://github.com/FreeRDP/FreeRDP/commit/9295838f812b4b66bbe4df32f55a51ca8350d95d
12+
# but it still exists in 1.0.2, which is the version in ubuntu 14.04.6
13+
kbd_list=$("$1" --kbd-list 2>/dev/null)
1114
_comp_awk '/^0x/ { print $1 }' <<<"$kbd_list"
1215
}
1316

0 commit comments

Comments
 (0)