Skip to content

Commit 16c9c30

Browse files
committed
Fix pass command
1 parent 39513ee commit 16c9c30

File tree

1 file changed

+5
-3
lines changed
  • src/vonal_daemon/plugins/pass

1 file changed

+5
-3
lines changed

src/vonal_daemon/plugins/pass/mod.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ password_files=( "${password_files[@]%.gpg}" )
119119
printf '%s\n' "${password_files[@]}"
120120
"#;
121121
const DEFAULT_COPY_PASSWORD_COMMAND: &str = r#"pass show -c {name}"#;
122-
const DEFAULT_TYPE_PASSWORD_COMMAND: &str =
123-
r#"pass show {name} | { IFS= read -r pass; printf %s "$pass"; } | xdotool"#;
122+
const DEFAULT_TYPE_PASSWORD_COMMAND: &str = r#"pass show {name} \
123+
| { IFS= read -r pass; printf %s "$pass"; } \
124+
| xdotool type --clearmodifiers --file -
125+
"#;
124126

125127
impl Plugin for Pass {
126128
fn search(
@@ -166,7 +168,7 @@ impl Plugin for Pass {
166168
)?;
167169
self.config_command_type_password = builder.get_or_create(
168170
"command_type_password",
169-
DEFAULT_TYPE_PASSWORD_COMMAND.into(),
171+
DEFAULT_TYPE_PASSWORD_COMMAND.trim_start().into(),
170172
)?;
171173
Ok(())
172174
})?;

0 commit comments

Comments
 (0)