I am having some issues where running a script that I have placed in my file browsers scripts folder making it runnable from the right-click menu, is not capable of actually producing a prompt for user-input when the read command is called.
Is there any way to force it to create the prompt?
This is the code I am using to test it, nothing much:
#!/bin/bash
read -p "Hour " answer
hours=$answer
My script is being invoked from the right-click menu in Nemo (the file browser in Linux Mint 19.2), being installed in /home/username/.local/share/nemo/scripts
.
read
works fine from a terminal, or running a script with "run in terminal", but the right-click menu in Nemo doesn't start one.