I’ve been doing a lot of Python for Google’s Highly Open Participation
contest lately but finally found the time to make a utility I thought
of a few weeks ago. Basically, it allows you to pipe to and from the
clipboard on the command line. Example:
You can also access it with the normal Control-C/Control-V shortcuts.
So, it’s a great concept, but not such a good implementation. First,
I doctored the output above. ruby-gnome2 seems to be outputting error
messages that I can’t get rid of, even after a Google search. This is
the real output:
You can also access it with the normal Control-C/Control-V shortcuts.
/usr/lib/ruby/1.8/glib2.rb: line 55 G_IS_PARAM_SPEC (pspec)' failed /usr/lib/ruby/1.8/glib2.rb: line 55 GLib-GObject-CRITICAL **:g_param_spec_boxed: assertionG_TYPE_IS_BOXED (boxed_type)’ failed
/usr/lib/ruby/1.8/glib2.rb: line 55
GLib-GObject-CRITICAL **:g_object_class_install_property: assertion
`G_IS_PARAM_SPEC (pspec)’ failed
ruby [email protected]:~$
I have seen these errors as well, you will have better luck if you
compile ruby-gnome2 directly from SVN.
Yeah, it has lots of dependencies, but probably you will have them.
I will love to play with code and see where it takes me!
On Thu, Jan 03, 2008 at 06:09:58AM +0900, dfinnie wrote:
I’ve been doing a lot of Python for Google’s Highly Open Participation
contest lately but finally found the time to make a utility I thought
of a few weeks ago. Basically, it allows you to pipe to and from the
clipboard on the command line. Example:
I’m not saying you shouldn’t write this utility – I’ve been known to
duplicate existing utilities at times, too, sometimes with a good reason
and sometimes for less-good reasons. However . . .
Are you aware there’s a commonly available utility for this already
called xclip? I use it pretty extensively.
If you already knew about xclip, I’m curious why you are writing what
amounts to a Ruby replacement for it. Are you just practicing? Do you
want to rewrite a bunch of utilities in Ruby kinda like the Perl Power
Tools? Do you dislike the xclip licensing?
Feel free to refuse to cater to my idle curiosity. I’m just nosy that
way.