Commit Graph
100 Commits
Author SHA1 Message Date
RandyTheSilly e30ce078d5 When shearing, send "None" for shm instead of "0" 2023-02-25 15:28:30 -05:00
RandyTheSilly 900482c530 Replace lists with tuples where applicable 2023-02-25 04:00:27 -05:00
RandyTheSilly dd036042f3 Made errors containing entry names reinforce correct syntax, fixed various errors in gen() function 2023-02-25 03:54:50 -05:00
RandyTheSilly 6457ff7acd Use clearer if/elif "in" syntax where applicable 2023-02-25 03:31:36 -05:00
RandyTheSilly 8dfdc2ff8c Remove "delete" argument of whitelist (now just "del") 2023-02-25 03:07:29 -05:00
RandyTheSilly beab695605 Re-separate server and client arguments 2023-02-25 03:04:37 -05:00
RandyTheSilly efdd32bd07 Fixed all invalid/help arguments opening the shear dialog 2023-02-25 02:43:53 -05:00
RandyTheSilly 3b92989abd Fixed various index errors 2023-02-25 02:41:59 -05:00
RandyTheSilly 71cd1f7824 Fixed incorrect and unfinished arguments throwing an exception (they now show the help screen) 2023-02-23 23:47:50 -05:00
RandyTheSilly a068d19aeb Updated help menu for new argument system, adjusted exit codes 2023-02-21 16:58:29 -05:00
RandyTheSilly addb022772 Removed redundant server help list trigger 2023-02-21 16:23:59 -05:00
RandyTheSilly b925a7bdb1 Removed "-rm" and "-s" arguments 2023-02-21 16:20:53 -05:00
RandyTheSilly 92871d85d7 Fixed syncing after incorrect arguments 2023-02-21 16:15:41 -05:00
RandyTheSilly 2f795b4d03 Disallow any additional arguments after "shear" 2023-02-20 18:04:37 -05:00
RandyTheSilly 2fba1262a1 Automatically add backslashes to arguments when needed 2023-02-20 17:56:25 -05:00
RandyTheSilly 3cda23ad3d Removed broken space replacer 2023-02-20 17:34:43 -05:00
RandyTheSilly 1975424886 Switch to mapfile for a minor completions speed improvement 2023-02-20 16:49:59 -05:00
RandyTheSilly eee0a3c3e3 Updated bash completion for #24 2023-02-20 16:36:30 -05:00
RandyTheSilly aa97e0237b Fixed various issues with arguments being parsed incorrectly 2023-02-20 14:12:54 -05:00
RandyTheSilly 563539bc2a Combined similar conditions 2023-02-20 00:35:27 -05:00
RandyTheSilly 6857fe3c09 Removed unnecessary if condition 2023-02-20 00:14:01 -05:00
RandyTheSilly 93af84766f Save the value of arg_start+1 to arg_start_p 2023-02-19 18:33:09 -05:00
RandyTheSilly 8d302f52c2 Made entry_name_fetch()'s parameter optional 2023-02-19 18:28:04 -05:00
RandyTheSilly 1e7328fded Addressed #24 - Made the argument order more natural 2023-02-19 18:19:27 -05:00
RandyTheSilly d7091e5157 Organized argument parsing order based on use frequency 2023-02-19 02:41:56 -05:00
RandyTheSilly 06106e7bc3 Re-write of argument parsing (enables future changes) 2023-02-19 02:00:52 -05:00
RandyTheSilly 8b0b802dfd Fixed IPv6 configuration 2023-02-15 13:36:20 -05:00
RandyTheSilly 75f469b6ba Revert seasonal colors 2023-02-15 13:07:54 -05:00
RandyTheSilly 2f738a4e89 Optimized usage of str.split(), use str.splitlines() where applicable 2023-02-15 13:01:19 -05:00
RandyTheSilly 5efc2d8a21 Correctly split in IP configuration instead of strip 2023-01-16 19:16:49 -05:00
RandyTheSilly 18d32939f1 Added IPv6 configuration support 2023-01-16 18:48:14 -05:00
RandyTheSilly ced260d6de Replaced += with .append when appending to lists 2023-01-16 18:19:29 -05:00
RandyTheSilly cfac8ddc3b Bump copyright year to 2023 2023-01-11 16:11:06 -05:00
RandyTheSilly fdc014c44a Re-organized badges 2022-12-14 02:52:23 -05:00
RandyTheSilly 697f7a870d Update documentation for release v1.3.0 2022-12-14 02:40:13 -05:00
RandyTheSilly bad92878e4 Replaced use of system-provided chmod and find with os.chmod and os.walk, respectively 2022-12-14 01:05:22 -05:00
RandyTheSilly b4fb37d877 Use getpass() for quick-unlock password input 2022-12-11 18:21:31 -05:00
RandyTheSilly 4ebbf7847d Fixed deletions occuring after the local index is generated, causing sshync to believe sheared files still exist on the client 2022-12-07 22:29:15 -05:00
RandyTheSilly af44f244db Updated packaging script to accommodate the removal of sshypRemote.py 2022-12-07 20:43:56 -05:00
RandyTheSilly 9d8eca3a2b Strip entry/folder names after user input to ensure compatibility with sshync 2022-12-07 20:27:39 -05:00
RandyTheSilly b24d1df721 Assigned exit code 6 to "server connection error" 2022-12-07 15:55:01 -05:00
RandyTheSilly 6080726dc6 Combined all list fetching functions into one to drastically reduce the number of SSH connections (speeds up sshync exponentially) 2022-12-07 15:46:33 -05:00
RandyTheSilly a49334482c Organized functions in sshync.py by use method 2022-12-05 23:21:02 -05:00
RandyTheSilly 56ea8d0cf9 Moved all syncing functionality into sshync.py, removed sshypRemote.py 2022-12-05 12:13:28 -05:00
RandyTheSilly 6f016bfb0a Call specifically 'python3' over ssh, as some environments do not have a binary/symlink named 'python', or 'python' may refer to python2 2022-12-05 09:36:37 -05:00
RandyTheSilly 31a4c7b8e7 Replaced use of system-provided 'ls' with 'os.listdir' 2022-12-04 18:57:23 -05:00
RandyTheSilly 45e2b60e10 Replaced use of system-provided 'touch' with pathlib's Path.touch, added 'mode=' when specifying permissions 2022-12-04 18:33:41 -05:00
RandyTheSilly d7987a1bc0 Detect Wayland sessions by checking if $WAYLAND_DISPLAY is set 2022-12-04 17:45:50 -05:00
RandyTheSilly 952fdd160b Re-ordered clipboard support to match support priorities (Wayland first) 2022-12-04 17:38:10 -05:00
RandyTheSilly c8c394e550 Replace occasional use of system-provided mkdir with pathlib's Path.mkdir 2022-12-04 15:31:31 -05:00
RandyTheSilly db4351469e Removed all remaining instances of subprocess.run being called with shell=True 2022-11-28 14:17:26 -05:00
RandyTheSilly e8703300fd Replace remaining uses of system() 2022-11-28 13:38:17 -05:00
RandyTheSilly 322db7ac54 Allow Haiku to use default pinentry, thanks to haikuports/haikuports#7457 2022-11-28 12:52:54 -05:00
RandyTheSilly cc81f219fa Use XDG_SESSION_TYPE to check for Wayland, rather than WAYLAND_DISPLAY 2022-11-26 23:57:12 -05:00
RandyTheSilly bf20b83738 Renaming no longer throws an error while not in offline mode 2022-11-26 15:18:47 -05:00
RandyTheSilly 74f9f616f3 Move some rarely used import statements closer to where they are needed 2022-11-26 14:05:19 -05:00
RandyTheSilly daf3f0d7bf Reduced code used for clipboard support 2022-11-26 13:53:47 -05:00
RandyTheSilly dc218025a7 Replace all currently replaceable instances of system() or run(X, shell=True) with run(X, shell=False) for security and compatibility 2022-11-26 13:19:09 -05:00
RandyTheSilly 3a63966827 Attempt to create ~/.ssh regardless of OS 2022-11-25 21:40:23 -05:00
RandyTheSilly 3ad2068b11 Use os.symlink in place of shell commands 2022-11-25 21:32:18 -05:00
RandyTheSilly 9b9f49a344 Removed exit code 6 from man page, as it no longer has reason to exist in sshyp 2022-11-25 21:17:41 -05:00
RandyTheSilly 8276b9164e Replaced database downloads in sync() with newer output capture logic from sshync - much faster syncing 2022-11-25 21:11:07 -05:00
RandyTheSilly dce6ad4390 Removed useless pass statement in sync() 2022-11-25 19:37:13 -05:00
RandyTheSilly b10c111640 pass_gen no longer recurses when the user gives invalid input 2022-11-25 19:23:14 -05:00
RandyTheSilly 3a96ef29dc Import os.path.expanduser directly to remove lots of repeated text 2022-11-25 18:45:06 -05:00
RandyTheSilly 3a85f06ffe Use subprocess.run without shell=True where easily applicable, redirect unused captured output to DEVNULL 2022-11-25 18:11:38 -05:00
RandyTheSilly 289d12f45a Use ASCII 30 and 31 as separators, removes limitations on "@", "^&*", and "*&^". 2022-11-25 12:00:51 -05:00
RandyTheSilly ae5172a6c8 Replaced sshync mod time/title retrieval logic with much more efficient and compatible logic 2022-11-24 19:40:04 -05:00
RandyTheSilly d1c968ed12 Corrected Fedora packaging 2022-11-06 14:00:51 -05:00
RandyTheSilly 109141a266 Removed '~' from generated filename character pool to avoid issues with quick-unlock 2022-11-06 13:25:35 -05:00
RandyTheSilly 57cc730d92 Corrected date in man page 2022-11-06 11:21:21 -05:00
RandyTheSilly 790ac573e5 Fixed documentation location in Haiku 2022-11-06 10:50:25 -05:00
RandyTheSilly 8b8e0c510f Updated quick-unlock failure error message 2022-11-06 00:49:44 -04:00
RandyTheSilly 0b0c8a37d1 Only check whitelist status if the gpg agent is locked (speeds up successive quick-unlock attempts) 2022-11-06 00:43:25 -04:00
RandyTheSilly 5fa30fa770 Added instructions for enabling Bash completions 2022-11-06 00:15:28 -04:00
RandyTheSilly 8b3bf04945 Fixed device id fetching (and quick-unlock verification) on Haiku 2022-11-05 23:57:09 -04:00
RandyTheSilly 24be16faaa Fixed FreeBSD package symlink target 2022-11-05 22:42:53 -04:00
RandyTheSilly 446cab94c2 Specified changelog location in Fedora package 2022-11-05 22:39:28 -04:00
RandyTheSilly e3af035bce Removed executable bits where they are not needed 2022-11-05 22:33:48 -04:00
RandyTheSilly 687a606160 Fixed options/flags layout in man page 2022-11-05 19:40:00 -04:00
RandyTheSilly e840b9def0 Update 'whitelist del' example to match 'whitelist add' example 2022-11-05 19:32:01 -04:00
RandyTheSilly 486fc39f22 Fix spacing between exit codes in man page 2022-11-05 19:28:27 -04:00
RandyTheSilly a63d1caa2e Update whitelist add example in man page to match new string generation 2022-11-05 19:27:20 -04:00
RandyTheSilly c2639d1f42 Update synopsis in man page 2022-11-05 19:22:39 -04:00
RandyTheSilly 9cd5066cc9 Fixed visual issue with version info screen 2022-11-05 19:12:51 -04:00
RandyTheSilly 517d2a3d22 Update documentation for v1.2.0 2022-11-05 18:27:43 -04:00
RandyTheSilly 80594712c7 Added a packaging option to create all packages buildable on Arch Linux 2022-11-05 17:56:14 -04:00
RandyTheSilly ca983d4992 Fixed editing entries with new string generation 2022-11-05 15:34:19 -04:00
RandyTheSilly 0614c2c83b Allow complex string generation for /dev/shm and device ids 2022-11-05 15:21:30 -04:00
RandyTheSilly 900f216ac0 Removed generated password length limit 2022-11-05 14:01:49 -04:00
RandyTheSilly 022ad9ef6d Several fixes to allow the Haiku package to work again 2022-11-04 00:30:48 -04:00
RandyTheSilly a1d5c8607c Made spacing in server help menus consistent with client help menus 2022-11-03 22:58:35 -04:00
RandyTheSilly 942febfac9 Fedora now only requires openssh-clients, rather than the openssh meta package 2022-11-03 22:47:58 -04:00
RandyTheSilly 33f7330886 Made exit codes more specific to their errors 2022-10-26 13:32:23 -04:00
RandyTheSilly 07394c1740 Added bash-completion as an optional dependency where applicable 2022-10-25 23:10:51 -04:00
RandyTheSilly a26ca86977 Fixed quick-unlock requirng passphrase regardless of whether or not it is needed - again 2022-10-25 11:53:52 -04:00
RandyTheSilly 51d99992a5 Require _client_device_id as parameter to whitelist_verify (for extension support) 2022-10-24 15:31:06 -04:00
RandyTheSilly d887047fd0 Initial enablement of extension support for quick-unlock 2022-10-20 15:25:57 -04:00
RandyTheSilly 304c1b09f0 Removed an exit statement that was preventing extensions from working 2022-10-19 15:13:14 -04:00
RandyTheSilly 6b20b82dd5 Allow fallback to standard unlock if quick-unlock fails 2022-10-19 11:34:02 -04:00