File tree 1 file changed +5
-3
lines changed
src/vonal_daemon/plugins/pass
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,10 @@ password_files=( "${password_files[@]%.gpg}" )
119
119
printf '%s\n' "${password_files[@]}"
120
120
"# ;
121
121
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
+ "# ;
124
126
125
127
impl Plugin for Pass {
126
128
fn search (
@@ -166,7 +168,7 @@ impl Plugin for Pass {
166
168
) ?;
167
169
self . config_command_type_password = builder. get_or_create (
168
170
"command_type_password" ,
169
- DEFAULT_TYPE_PASSWORD_COMMAND . into ( ) ,
171
+ DEFAULT_TYPE_PASSWORD_COMMAND . trim_start ( ) . into ( ) ,
170
172
) ?;
171
173
Ok ( ( ) )
172
174
} ) ?;
You can’t perform that action at this time.
0 commit comments