here is a very small script - save to following file with name as "Print File"
and make it executable -
chmod +x "Print File"
and move into
~/.gnome2/nautilus-scripts
directory
+++++++++++++++++++++++++
#!/bin/bash## Ny Narendra Sisodiya, for SchoolOS
## narendra.sisodiya@gmail.com
## If you modify it, Please let me know.
## released under GPLv3IFS=$'\n'
for FILENAME in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do##TODO to add file checking extensions
lp "$FILENAME"
doneexit 0
+++++++++++++++++++++ You can now print files using right click on a fileCan sombody test and modify so that before giving print command we need to check that file must be .odp, .txt odt, .pdf format. Also, we can show some menu using zenity
and make it executable -
chmod +x "Print File"
and move into
~/.gnome2/nautilus-scripts
directory
+++++++++++++++++++++++++
#!/bin/bash## Ny Narendra Sisodiya, for SchoolOS
## narendra.sisodiya@gmail.com
## If you modify it, Please let me know.
## released under GPLv3IFS=$'\n'
for FILENAME in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do##TODO to add file checking extensions
lp "$FILENAME"
doneexit 0
+++++++++++++++++++++ You can now print files using right click on a fileCan sombody test and modify so that before giving print command we need to check that file must be .odp, .txt odt, .pdf format. Also, we can show some menu using zenity
No comments:
Post a Comment