mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-18 17:35:59 +01:00
pass: support Haiku clipboard (#12410)
This commit is contained in:
@@ -45,10 +45,11 @@ COPYRIGHT="2005-2012, Git project
|
||||
2017, Sam Mason
|
||||
"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
SOURCE_URI="https://git.zx2c4.com/password-store/snapshot/password-store-$portVersion.tar.xz"
|
||||
SOURCE_DIR="password-store-$portVersion"
|
||||
CHECKSUM_SHA256="cfa9faf659f2ed6b38e7a7c3fb43e177d00edbacc6265e6e32215ff40e3793c0"
|
||||
PATCHES="pass-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
|
||||
|
||||
32
app-admin/pass/patches/pass-1.7.4.patchset
Normal file
32
app-admin/pass/patches/pass-1.7.4.patchset
Normal file
@@ -0,0 +1,32 @@
|
||||
From 539760544d05f4e17dabdccda61e2467e15e30c0 Mon Sep 17 00:00:00 2001
|
||||
From: Peter van Dijk <peter@7bits.nl>
|
||||
Date: Tue, 20 May 2025 21:35:09 +0200
|
||||
Subject: Haiku clipboard support
|
||||
|
||||
|
||||
diff --git a/src/password-store.sh b/src/password-store.sh
|
||||
index a0dcf2e..0a34c43 100755
|
||||
--- a/src/password-store.sh
|
||||
+++ b/src/password-store.sh
|
||||
@@ -155,6 +155,9 @@ check_sneaky_paths() {
|
||||
#
|
||||
|
||||
clip() {
|
||||
+ local copy_cmd=( clipboard -i )
|
||||
+ local paste_cmd=( echo -n $(clipboard -p) )
|
||||
+ local display_name="Haiku"
|
||||
if [[ -n $WAYLAND_DISPLAY ]]; then
|
||||
local copy_cmd=( wl-copy )
|
||||
local paste_cmd=( wl-paste -n )
|
||||
@@ -168,7 +171,7 @@ clip() {
|
||||
local paste_cmd=( xclip -o -selection "$X_SELECTION" )
|
||||
local display_name="$DISPLAY"
|
||||
else
|
||||
- die "Error: No X11 or Wayland display detected"
|
||||
+ : # die "Error: No X11 or Wayland display detected"
|
||||
fi
|
||||
local sleep_argv0="password store sleep on display $display_name"
|
||||
|
||||
--
|
||||
2.48.1
|
||||
|
||||
Reference in New Issue
Block a user