From a22ee15c603e3fb7066fdd2eca8adf192719ca97 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 10 Jul 2011 10:57:32 +0200 Subject: Raps2/UI.pm: to_clipboard: Return undef if xclip fails --- bin/raps2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/raps2') 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}; -- cgit v1.2.3