sudo dpkg -i *.deb in a terminal opened in '/folder', installs all debs in the location '/folder'.
What command to add in
nautilus-actions (Nautilus-Actions Configuration Tool) so that only selected deb files are installed?
For example, I looked for a script to run a command in a terminal and according to this model I have created this script:
#!/usr/bin/expect -f # Get a Bash shell spawn -noecho bash # Wait for a prompt expect "$ " # Type something send "sudo dpkg -i" # Hand over control to the user interact exit
To run that script I have created an action with Nautilus-Actions Configuration Tool and tried to make settings to make it open within a selected location and for the selected deb files. The first part works, based on a command like:
gnome-terminal -e "/path/to/the/script" --working-directory=%f
But the terminal just contains that command to install all debs from that folder, without considering the selection o files (in the context menu of which I can make the command appear: but it will affect all files, not just those selected).