This scripts are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You are free to do with them what ever you want.
It’s not very sophisticated and doesn’t give any error messages if something goes wrong. It doesn’t do any file type conversion but relies on what your print system can do - so don’t expect too much.
Save the file as $HOME/.nautilus/python-extensions/nautilus-print.py and restart Nautilus (e.g. log out and log in or run nautilus --quit from the command line).
Right click on a local file in Nautilus. You should see a menu that somewhere has a Print item. Click on that to start GtkLP with the selected file(s).
A simple script to put documents on GNOME’s recently used document list
addtorecent URI [MIME-type] [app] [cmd]
URL is the path or URI of the document
MIME-type is its MIME-type and defaults to text/plain
- app is a name of an application you want to associate with this document
and defaults to xdg-open
- cmd is the command line to start app
and defaults to xdg-open %F