Package: libclipboard-perl / 0.13-1

sensible.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: use sensible-{browser,editor}
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2016-08-13

--- a/scripts/clipbrowse
+++ b/scripts/clipbrowse
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 use strict;
 use Clipboard;
-my $browser = $ENV{BROWSER} || 'chromium-browser "%s"';
+my $browser = $ENV{BROWSER} || 'sensible-browser %s';
 $browser .= ' %s' unless $browser =~ /%s/;
 my $query = Clipboard->paste;
 $query =~ s/['"]/\\$&/;
--- a/scripts/clipedit
+++ b/scripts/clipedit
@@ -10,7 +10,7 @@
 print $tmpfile $orig;
 close $tmpfile;
 
-my $ed = $ENV{VISUAL} || $ENV{EDITOR} || 'vim';
+my $ed = $ENV{VISUAL} || $ENV{EDITOR} || 'sensible-editor';
 system($ed, $tmpfilename);
 
 open $tmpfile, $tmpfilename or die "Failure to open $tmpfilename: $!";