Permalink
Browse files

Initial commit

  • Loading branch information...
FrozenCow committed Aug 3, 2011
0 parents commit 17aacfaa392b77e152075fb76d7dbcf0ec180331
Showing with 2,835 additions and 0 deletions.
  1. +27 −0 clipboard.c
  2. +1,795 −0 crypto.js
  3. +20 −0 jsxcompressor.js
  4. +514 −0 keepass.js
  5. +219 −0 keepasscli.js
  6. +8 −0 package.json
  7. +252 −0 struct.js
@@ -0,0 +1,27 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <time.h>
+#include <gtkmm.h>
+#include <gtkmm/main.h>
+#include <signal.h>
+
+int main(int argc, char **argv) {
+pid_t child;
+if (!(child = fork())) {
+Gtk::Main kit(argc, argv);
+
+char * text = argv[1];
+
+GtkClipboard * clipboard;
+
+clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD);
+gtk_clipboard_set_text(clipboard, text, strlen(text)+1);
+gtk_clipboard_store(clipboard);
+
+Gtk::Main::run();
+} else {
+usleep(1000*1000*5);
+kill(child, SIGKILL);
+}
+return 0;
+}
Oops, something went wrong.

0 comments on commit 17aacfa

Please sign in to comment.