diff --git a/README.md b/README.md index c7bd768..f706d72 100644 --- a/README.md +++ b/README.md @@ -59,14 +59,14 @@ One-time pads can be trivially encrypted and decrypted using pencil and paper, m ### Download Pre-Built Binaries -**[Download Current Linux x86](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.48/otp-v0.3.48-linux-x86_64)** +**[Download Current Linux x86](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.49/otp-v0.3.49-linux-x86_64)** -**[Download Current Raspberry Pi 64](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.48/otp-v0.3.48-linux-arm64)** +**[Download Current Raspberry Pi 64](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.49/otp-v0.3.49-linux-arm64)** After downloading: ```bash # Rename for convenience, then make executable -mv otp-v0.3.48-linux-x86_64 otp +mv otp-v0.3.49-linux-x86_64 otp chmod +x otp # Run it diff --git a/otp b/otp deleted file mode 120000 index 981fa96..0000000 --- a/otp +++ /dev/null @@ -1 +0,0 @@ -./build/otp-x86_64 \ No newline at end of file diff --git a/src/main.h b/src/main.h index 9dea81a..dca7bb4 100644 --- a/src/main.h +++ b/src/main.h @@ -23,7 +23,7 @@ #include // Version - Updated automatically by build.sh -#define OTP_VERSION "v0.3.48" +#define OTP_VERSION "v0.3.49" // Constants #define MAX_INPUT_SIZE 4096 diff --git a/src/ui.c b/src/ui.c index 520e263..b4266ea 100644 --- a/src/ui.c +++ b/src/ui.c @@ -394,8 +394,9 @@ int handle_decrypt_menu(void) { // Empty input - launch file manager to browse for files char selected_file[512]; if (launch_file_manager(get_files_directory(), selected_file, sizeof(selected_file)) != 0) { - printf("Error: Could not launch file manager\n"); - return 1; + printf("File browsing cancelled or failed.\n"); + printf("Returning to main menu...\n"); + return 0; } // Generate smart default output filename with files directory and use enhanced input function