From 2911087b4061d291e39c8fa578d4ab86bc70606c Mon Sep 17 00:00:00 2001 From: Cuan Date: Mon, 11 Oct 2021 13:47:53 -0400 Subject: [PATCH] Fixed an issue with copying notes (2) --- bin/rpass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/rpass b/bin/rpass index cc2bfe1..b7c157a 100755 --- a/bin/rpass +++ b/bin/rpass @@ -116,7 +116,7 @@ if argument == 'version' or argument == '-v': print('/ /') print('/ rpass Copyright (C) 2021 Randall Winkhart /') print('/ /') - print('/ Version 2021.10.07.mr5 /') + print('/ Version 2021.10.12.mr5.1 /') print('/ The Notetaker Update /') print('/ /') print('////////////////////////////////////////////////////////\n') @@ -661,9 +661,9 @@ if argument == 'copy note' or argument == 'copy -n': term('gpg -d --output /dev/shm/' + shmfolder + '/' + shmentry + ' ' + directory + readentry + '.gpg') copyline = open('/dev/shm/' + shmfolder + '/' + shmentry, 'r').readlines() if environ.get('WAYLAND_DISPLAY') == 'wayland-0': - term('wl-copy ' + "'" + copyline[3].replace('\n', '') + "'") + term('wl-copy ' + "'" + copyline[4].replace('\n', '') + "'") else: - term('echo -n ' + "'" + copyline[3].replace('\n', '') + "'" + ' | xclip -sel c') + term('echo -n ' + "'" + copyline[4].replace('\n', '') + "'" + ' | xclip -sel c') rmtree('/dev/shm/' + shmfolder) except FileNotFoundError: print('\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')