Friday, December 2, 2011

Pastie on Xubuntu 11.10

Pastie is a simple clipboard manager that saves history of previous copied text.
It's convenient to use a clipboard manager not only for the history list, but also because the copied text will be unavailable if the application that has the original text is closed.

Install Pastie via PPA
sudo add-apt-repository ppa:hel-sheep/pastie && sudo apt-get update
sudo apt-get install python-gnome2 pastie -y

Note: 
Pastie depends on python-gnome2 package, however this dependency it's not automatically resolved; python-gnome2 has to be installed manually.
Here's what happens if python-gnome2 is not installed:
$ pastie
Traceback (most recent call last):
  File "/usr/bin/pastie", line 30, in <module>
    import pastielib.protector as protector
  File "/usr/lib/pymodules/python2.7/pastielib/protector.py", line 31, in <module>
    import pastielib.history as history
  File "/usr/lib/pymodules/python2.7/pastielib/history.py", line 20, in <module>
    import gnomevfs
ImportError: No module named gnomevfs

Pastie's selection dialog
Pastie allows to open the clipboard history using a keyboard shortcut. The default value for that shortcut is Ctrl-Shift-C and it'll cause problems since that's the same key combination for copying text from the terminal.
My suggestion is to change it to Ctrl-Alt-H (the key combination is for accessing clipboard History, so it's easy to remember).

References:
Pastie get an Ubuntu PPA (WEB UPD8)
Pastie - Very Simple Clipboard Manager With Application Indicator Support

No comments:

Post a Comment