Created
November 22, 2017 21:12
-
-
Save henningjensen/0f87e8144ee4c1b1bf69177f8094de78 to your computer and use it in GitHub Desktop.
Printing multiple files in Ubuntu with Nautilus script
This file contains hidden or 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.sh | |
# | |
# credits original script: | |
# http://www.frenssen.be/2010-05-09-printing-a-file-from-the-right-click-context-menu-in-nautilus/ | |
# | |
# Print files from the right-click context menu in Nautilus. | |
# Place this script in ~/.local/share/nautilus/scripts/ | |
echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | while read file | |
do | |
lpr "$file" | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment