I want to use Xdialog to read in the password for opening an encrypted file.
I can do all the mapper and mounting stuff no problem, and can get as far as having Xdialog prompt me for the password.
The problem is that Xdialog does not place a "\n" or "new line" character at the end of the input it sends, and cryptsetup just sits there and waits for EOL!
Here is what I have so far:
sudo losetup /dev/loop0 /home/me/my-cryptfile.crypt
sudo cryptsetup create myhome /dev/loop0 | Xdialog --password --inputbox "Enter LUKS password:" 10 60It then echoes the password in the terminal, and sits there until I press ENTER.
I want to run this on X startup and there will be no terminal shown where I can press enter, so I need to find out how to get Xdialog to terminate it's output with an EOL character, OR any other way of adding an EOL to the output that is passed to cryptsetup.
Hope that makes sense?
Thanks

.