CristianHenzel / ClipIt

ClipIt clipboard manager for GTK+
https://github.com/CristianHenzel/ClipIt
GNU General Public License v3.0
651 stars 83 forks source link

Cli pipe to clipit gives 'Clipboard is null, recovering ...' #51

Open jonpatterns opened 8 years ago

jonpatterns commented 8 years ago

Hi

I'm trying to send an entry to clipit via the commandline, however it does not enter anything into the clipboard and gives the following error:

> clipit "text"
Clipboard is null, recovering ...
>

> echo "text" | clipit
Clipboard is null, recovering ...

>

I'm using Manjaro Openbox. Perhaps I have a setting wrong somewhere?


clipit -d

It doesn't work in daemon mode either. Daemon repeat gives error message:

GLib-CRITICAL **: Source ID 340 was not found when attempting to remove it

GLib-CRITICAL **: Source ID 342 was not found when attempting to remove it

This may be related: crunchbang

finex commented 5 years ago

Hi, I'm experiencing the same bug on Archlinux: the daemon mode doesn't work, it returns the same error.

nesnera commented 5 years ago

+1 :-/ Fedora release 28 (Twenty Eight) with LXQt

Steps to reproduce:

  1. $ clipit &
  2. $ date +%"F %T" | clipit (My aim is to be able to paste current date and time by ClipIt action)
cf-ka commented 5 years ago

I have the same error with Void Linux and it its only with "clipit -d", but if i run it in a terminal with 'clipit' only, all works fine.

bjd-pfq commented 4 years ago

Same here:

$> clipit -d
(clipit:13803): GLib-CRITICAL **: 16:48:23.596: Source ID 2 was not found when attempting to remove it

(clipit:13803): GLib-CRITICAL **: 16:48:24.099: Source ID 7 was not found when attempting to remove it

(clipit:13803): GLib-CRITICAL **: 16:48:24.603: Source ID 12 was not found when attempting to remove it

(clipit:13803): GLib-CRITICAL **: 16:48:25.107: Source ID 17 was not found when attempting to remove it

...
...

on and on ...

$> clipit -h
Usage:
  clipit [OPTION…]

Clipboard CLI usage examples:

  echo "copied to clipboard" | clipit
  clipit "copied to clipboard"
  echo "copied to clipboard" | clipit -c

Help Options:
  -h, --help          Show help options

Application Options:
  -d, --daemon        Run as daemon
  -n, --no-icon       Do not use status icon (Ctrl-Alt-P for menu)
  -c, --clipboard     Print clipboard contents
  -p, --primary       Print primary contents

Written by Cristian Henzel.
Report bugs to <oss@rspwn.com>.