summaryrefslogtreecommitdiff
path: root/bin/raps2
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-10 10:57:32 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-10 10:57:32 +0200
commita22ee15c603e3fb7066fdd2eca8adf192719ca97 (patch)
treecc50546af47cbb156309c9c0caca831e702bf493 /bin/raps2
parent622a4ad3f3e7da1837f253f816788069631891ad (diff)
Raps2/UI.pm: to_clipboard: Return undef if xclip fails
Diffstat (limited to 'bin/raps2')
-rwxr-xr-xbin/raps23
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/raps2 b/bin/raps2
index ed86bca..45c6149 100755
--- a/bin/raps2
+++ b/bin/raps2
@@ -146,7 +146,8 @@ sub cmd_get {
my $key = $raps2->pw_load( file => $pwfile );
- $raps2->ui->to_clipboard( $key->{password} );
+ $raps2->ui->to_clipboard( $key->{password} )
+ or die("Could not place password in clipboard: ${!}\n");
if ( $key->{extra} ) {
print $key->{extra};