From 4c4e1f4225431fc7c017261139fdf1fd27dff666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Meydjer=20Windm=C3=BCller?= Date: Sat, 10 Feb 2018 19:29:15 -0200 Subject: [PATCH 1/2] Add share URL as "Short Link" clipboard option. --- CloudApp.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/CloudApp.pm b/CloudApp.pm index 385a515..7fccbfb 100755 --- a/CloudApp.pm +++ b/CloudApp.pm @@ -167,6 +167,7 @@ sub upload { my $rsp3 = $ua->request($req3); if ($rsp3->is_success) { my $content3 = decode_json($rsp3->decoded_content); + $self->{_links}->{'short_link'} = $content3->{'share_url'}; $self->{_links}->{'direct_link'} = $content3->{'content_url'}; } $self->{_links}{'status'} = $rsp3->status_line; From 11dc2f9b4108298339d7a051616118af3c81933c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Meydjer=20Windm=C3=BCller?= Date: Sat, 10 Feb 2018 19:35:18 -0200 Subject: [PATCH 2/2] Dependencies info --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d23a92f..19ee6b1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,13 @@ Shutter Upload Plugin for CloudApp [Shutter](http://shutter-project.org/) is an awesome screenshot tool for Linux. [CloudApp](http://getcloudapp.com) is an awesome screenshot sharing tool, but it lacks a Linux client. This plugin tries to solve that problem. -##Installation +## Installation + +Check if you have the following **dependencies**: +``` +perl-tie-ixhash +perl-lwp-protocol-https +``` Download `CloudApp.pm` and move it to the Shutter upload plugins directory, and make it executable. On Ubuntu, that's: