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 script.
  2. Copy:
    1. scripts/ 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!


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

  1. Pingback: Alessio Treglia (alessio) 's status on Thursday, 17-Sep-09 09:55:40 UTC -

    1. quadrispro Post author

      After sending the file, the pastebin URL will be available from your clipboard, so you can simply paste it to a new browser tab’s address bar (try to press Ctrl + V :)).

  2. Pingback: Alessio Treglia » Nautilus Pastebin, how to send your files to a … | RSS EYE

  3. Tajidin Abd

    im having a issue with nautilus pastebin it does not show up in the context menu when i right click on a file. I am using archlinux. It works fine in my Fedora machine anyideas whats wrong in Archlinux?

  4. Rodney1992

    This post is on 16 spot in google’s search results, if you want more visitors, you should build more backlinks to your blog, there
    is one trick to get free, hidden backlinks from authority forums, search on youtube:
    how to get hidden backlinks from forums


Leave a Reply

Your email address will not be published. Required fields are marked *