tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
keepass: 2.53.1 -> 2.54
Scott Worley
2 years ago
1bca401e
ace5093e
+32
-33
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
keepass
default.nix
fix-paths.patch
+2
-2
pkgs/applications/misc/keepass/default.nix
···
4
4
inherit (builtins) add length readFile replaceStrings unsafeDiscardStringContext toString map;
5
5
in buildDotnetPackage rec {
6
6
pname = "keepass";
7
7
-
version = "2.53.1";
7
7
+
version = "2.54";
8
8
9
9
src = fetchurl {
10
10
url = "mirror://sourceforge/keepass/KeePass-${version}-Source.zip";
11
11
-
hash = "sha256-R7KWxlxrhl55nOaDNYwA/cJJl+kd5ZYy6eZVqyrxxnM=";
11
11
+
hash = "sha256-fDXT4XxoJfPV8tU8uL94bnL//zKlvXGS9EzNls52kJg=";
12
12
};
13
13
14
14
sourceRoot = ".";
+30
-31
pkgs/applications/misc/keepass/fix-paths.patch
···
53
53
54
54
int iSep = str.IndexOf(':');
55
55
diff --git a/KeePass/Util/ClipboardUtil.Unix.cs b/KeePass/Util/ClipboardUtil.Unix.cs
56
56
-
index ab49ee2..7f6c50f 100644
57
56
--- a/KeePass/Util/ClipboardUtil.Unix.cs
58
57
+++ b/KeePass/Util/ClipboardUtil.Unix.cs
59
59
-
@@ -62,7 +62,7 @@ namespace KeePass.Util
60
60
-
// "-out -selection clipboard");
61
61
-
// if(str != null) return str;
58
58
+
@@ -65,7 +65,7 @@
59
59
+
// "-out -selection clipboard");
60
60
+
// if(str != null) return str;
62
61
63
63
-
- string str = NativeLib.RunConsoleApp("xsel",
64
64
-
+ string str = NativeLib.RunConsoleApp("@xsel@",
65
65
-
"--output --clipboard", null, XSelFlags);
66
66
-
if(str != null) return str;
62
62
+
- string str = NativeLib.RunConsoleApp("xsel",
63
63
+
+ string str = NativeLib.RunConsoleApp("@xsel@",
64
64
+
"--output --clipboard", null, XSelFlags);
65
65
+
if(str != null) return str;
66
66
+
}
67
67
+
@@ -93,10 +93,10 @@
68
68
+
if(string.IsNullOrEmpty(str))
69
69
+
{
70
70
+
// xsel with an empty input can hang, thus use --clear
71
71
+
- if(NativeLib.RunConsoleApp("xsel", "--clear --primary",
72
72
+
+ if(NativeLib.RunConsoleApp("@xsel@", "--clear --primary",
73
73
+
null, XSelFlags) != null)
74
74
+
{
75
75
+
- NativeLib.RunConsoleApp("xsel", "--clear --clipboard",
76
76
+
+ NativeLib.RunConsoleApp("@xsel@", "--clear --clipboard",
77
77
+
null, XSelFlags);
78
78
+
return;
79
79
+
}
80
80
+
@@ -107,10 +107,10 @@
81
81
+
}
67
82
68
68
-
@@ -83,10 +83,10 @@ namespace KeePass.Util
69
69
-
if(string.IsNullOrEmpty(str))
70
70
-
{
71
71
-
// xsel with an empty input can hang, thus use --clear
72
72
-
- if(NativeLib.RunConsoleApp("xsel", "--clear --primary",
73
73
-
+ if(NativeLib.RunConsoleApp("@xsel@", "--clear --primary",
74
74
-
null, XSelFlags) != null)
83
83
+
// xsel does not support --primary and --clipboard together
84
84
+
- if(NativeLib.RunConsoleApp("xsel", "--input --primary",
85
85
+
+ if(NativeLib.RunConsoleApp("@xsel@", "--input --primary",
86
86
+
str, XSelFlags) != null)
75
87
{
76
76
-
- NativeLib.RunConsoleApp("xsel", "--clear --clipboard",
77
77
-
+ NativeLib.RunConsoleApp("@xsel@", "--clear --clipboard",
78
78
-
null, XSelFlags);
88
88
+
- NativeLib.RunConsoleApp("xsel", "--input --clipboard",
89
89
+
+ NativeLib.RunConsoleApp("@xsel@", "--input --clipboard",
90
90
+
str, XSelFlags);
79
91
return;
80
92
}
81
81
-
@@ -97,10 +97,10 @@ namespace KeePass.Util
82
82
-
}
83
83
-
84
84
-
// xsel does not support --primary and --clipboard together
85
85
-
- if(NativeLib.RunConsoleApp("xsel", "--input --primary",
86
86
-
+ if(NativeLib.RunConsoleApp("@xsel@", "--input --primary",
87
87
-
str, XSelFlags) != null)
88
88
-
{
89
89
-
- NativeLib.RunConsoleApp("xsel", "--input --clipboard",
90
90
-
+ NativeLib.RunConsoleApp("@xsel@", "--input --clipboard",
91
91
-
str, XSelFlags);
92
92
-
return;
93
93
-
}
94
93
diff --git a/KeePassLib/Native/ClipboardU.cs b/KeePassLib/Native/ClipboardU.cs
95
94
index 291c51d..3c76380 100644
96
95
--- a/KeePassLib/Native/ClipboardU.cs