aboutsummaryrefslogtreecommitdiff
path: root/tw/services/files/passmenu
diff options
context:
space:
mode:
Diffstat (limited to 'tw/services/files/passmenu')
-rwxr-xr-xtw/services/files/passmenu4
1 files changed, 2 insertions, 2 deletions
diff --git a/tw/services/files/passmenu b/tw/services/files/passmenu
index a95fcc7a..2600e222 100755
--- a/tw/services/files/passmenu
+++ b/tw/services/files/passmenu
@@ -44,7 +44,7 @@ extract_key() {
}
type_stdin() {
- tr -d '\n' | if [ -n "$WAYLAND_DISPLAY" ]; then
+ tr -d '\n' | if [ -n "${WAYLAND_DISPLAY+x}" ]; then
wtype -s 50 -
else
xdotool getactivewindow type --clearmodifiers --file -
@@ -86,7 +86,7 @@ case "$mode" in
entry=$(pass show "$password_name")
if [ "$mode" = type-all ]; then
echo "$entry" | extract_key username | type_stdin
- if [ -n "$WAYLAND_DISPLAY" ]; then
+ if [ -n "${WAYLAND_DISPLAY+x}" ]; then
wtype -s 50 -k Tab
else
xdotool getactivewindow key Tab