Tag Archives: Nautilus Pastebin

What a beautiful day

I have two nice news to tell you today!

  1. Nautilus Pastebin has been entered Debian’s unstable archive (PTS page).
  2. Yesterday morning I opened my mailbox and the first email began with the following:


    Congratulations! This e-mail confirms that Canonical would like to offer you sponsorship in the form of accommodation and travel to the Ubuntu Developers Summit in Dallas for the Ubuntu 10.04 Lucid Lynx release – http://wiki.ubuntu.com/UDS

I can’t describe what I feel, I just want to thank Canonical for giving me this opportunity.

Nautilus Pastebin, how to send your files to a “pastebin” with one mouse click

I am very fond of those websites that allow users to upload files for a public viewing (called pastebin), usually I upload logs, links and other text files with pastebinit, a simple command-line tool, already available in Debian’s and Ubuntu’s archives, and I thought:

“Why don’t find a not-CLI solution to make it in a more fast and comfortable way?”

So I decided to write nautilus-pastebin, an extension for the GNOME file manager, which allows users to send files just a right-click away.

How does it work?

Simply: right-click on a file, select «Pastebin» and, if the Internet connection is active, after few seconds you will see a bubble like that one in this screenshot:

The extension doesn’t only show that notification, it also retrieves the MIME type in order to try to adjust the syntax highlighting parameter according to the configuration of the selected pastebin and finally copies the paste URL to the clipboard, allowing you to paste it in a browser tab, IRC channel or wherever you want.

The global configuration file is located into /etc path, but if you want to select another pastebin to use you may do it by creating a file like the following one:


The file must be named as nautilus-pastebin.conf and saved under ~/.config/nautilus-pastebin/.

If problems occured during the past operation, you may see a message like the following:

Where can I download it? And how can install it?

You can find all the information that you need by opening the projects page, for the installation, after uncompressing the tarball, you can:

  1. Use the setup.py script.
  2. Copy:
    1. scripts/nautilus-pastebin.py to /usr/lib/nautilus/extensions-2.0/python/
    2. data/nautilus-pastebin.conf to /etc/ or in ~/.config/nautilus-pastebin/
    3. data/nautilus-pastebin.png to /usr/share/pixmaps/

After the installation, you may need to restart Nautilus:

killall nautilus

Some pastebins of the preconfigured ones don’t work well and I need some time to improve and extend the support for other websites.

If you wanted to contribute to the development by sending me patches, configurations or suggestions I would be very happy!