Created
April 4, 2015 10:03
-
-
Save stephenharris/f78a173e235b8d0a9dd7 to your computer and use it in GitHub Desktop.
Print selected files form the right-click context menu in Nautilus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# print-selected.sh | |
# | |
# Print files from the right-click context menu in Nautilus. | |
# Place this script in ~/.local/share/nautilus/scripts & make executable. | |
# | |
# @see http://askubuntu.com/questions/319948/printing-multiple-files-from-nautilus | |
# @see http://www.frenssen.be/content/printing-file-right-click-context-menu-nautilus | |
for i in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS | |
do | |
lpr $i | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can we apply nautilus script to particular directory.
Like
/home/user/Desktop/directory