From 9e8c580bb7ca824f83857710e39119de16026886 Mon Sep 17 00:00:00 2001 From: Cuan Date: Thu, 23 Sep 2021 14:28:30 -0400 Subject: [PATCH] Fixed issues with copy syntax (2) --- bin/rpass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/rpass b/bin/rpass index c757e0f..1db12b6 100755 --- a/bin/rpass +++ b/bin/rpass @@ -101,8 +101,8 @@ if argument == 'version' or argument == '-v': print('/ /') print('/ rpass Copyright (C) 2021 Randall Winkhart /') print('/ /') - print('/ Version 2021.09.15.mr4.2 /') - print('/ The Housekeeping Update (Pt. 1) /') + print('/ Version 2021.09.25.mr5 /') + print('/ The Housekeeping Update (Pt. 2) /') print('/ /') print('////////////////////////////////////////////////////////\n') @@ -593,9 +593,9 @@ if argument == 'copy password' or argument == 'copy -p': 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[1].replace('\n', '') + "'") + term('wl-copy ' + "'" + copyline[1].replace('\n', '').replace("'", "'\\''") + "'") else: - term('echo -n ' + "'" + copyline[1].replace('\n', '') + "'" + ' | xclip -sel c') + term('echo -n ' + "'" + copyline[1].replace('\n', '').replace("'", "'\\''") + "'" + ' | xclip -sel c') rmtree('/dev/shm/' + shmfolder) except FileNotFoundError: print('\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')