I am trying to install
.deb file by right clicking on it in Nemo.
My Nemo Action Looks like:
[Nemo Action] Name=Install Deb File Comment=Install %F Exec=<scripts/install_deb_file.sh %F> Icon-Name=package-x-generic-symbolic Selection=s Extensions=deb; EscapeSpaces=true Dependencies=zenity;dpkg;
zenity_askpass.sh file looks like:
#!/bin/bash zenity --password --title="Authenticate"
install_deb_file.sh file looks like:
#!/bin/dash export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/scripts/zenity_askpass.sh" sudo dpkg -i "$1"
How can I modify
install_deb_file.sh so that it install the
.deb package and show the stdout / stderr of
sudo dpkg -i "$1" in zenity.