! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Xfce clipman copies but does not paste (Xubuntu Jaunty)
Status:
CLOSED: INVALID
Product:
Xfce4-clipman-plugin
Component:
General

Comments

Description Christoph 2009-04-28 20:08:05 CEST
Simple Copy-Paste works, e.g. between Openoffice (OOo) and OOo, or between Firefox and OOo or vice versa. But the Clipman plugin doesn't paste anything. And it does not recognise what's copied from OOo. It sees what comes from Firefox, Thunderbird, Evince, Xfce4-terminal, Mousepad, but does not paste it anywhere.

So the Clipman is 0% functional. What can I do to help?

See also Ubuntu-Bug #368829: https://bugs.launchpad.net/ubuntu/+source/xfce4-clipman-plugin/+bug/368829
Comment 1 Mike Massonnet editbugs 2009-04-28 20:32:08 CEST
Nothing I will do. I stopped 0.9.x after releasing 1.0.x and I stay by that. So ask your distro to patch it, or get a backport for the version 1.0.0.

For what's it worth, I doubt about the 0% functionnal. Clipman 0.9 gets text and images, and recreates them, so any application that allows to paste text works. It only breaks for the applications that copies special texts like hyperlinks or a file list while Clipman copies them as plain text, so that it actually loses the information about the hyperlink or file list.
Comment 2 Christoph 2009-04-28 20:40:20 CEST
Thanks, Mike, for the quick answer. I did not realise that the newest Xubuntu did not ship the newest Clipman. I'm going to bug them instead of you :-)
However, my copy of Clipman indeed does not paste anything, anywhere. I'll see what the new version does - if I manage to get it on my system...
Comment 3 Christoph 2009-06-16 11:50:44 CEST
Pasting is still impossible in version 1.0.1 (on the Xubuntu 9.10-alpha2 live cd). What should I do to help find out what's wrong?

$ apt-cache policy xfce4-clipman-plugin
xfce4-clipman-plugin:
  Installed: 2:1.0.1-1
  Candidate: 2:1.0.1-1
  Version table:
 *** 2:1.0.1-1 0
        500 http://archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status
Comment 4 Mike Massonnet editbugs 2009-06-16 12:28:05 CEST
To debug this problem I will need that you work closely with me. I don't get enough information from your bug report and I'm unable to reproduce it.

What happens when you copy simple text (eg. from mousepad)? What is the status of the menu, is there a new item? 

You will have to build the plugin from source, I can give you a quick help how to do it:
1- apt-get remove xfce4-clipman-plugin
   first uninstall the ubuntu package
2- apt-get build-dep xfce4-clipman-plugin
   this will install all the needed tools and deps to build from source
3- svn co http://svn.xfce.org/svn/goodies/xfce4-clipman-plugin/trunk clipman
   this will checkout the svn source into the local directory clipman
4- cd clipman
5- ./autogen.sh && make
6- make install

There is a small test program to build that can be useful too.
7- make -C tests
   this will build tests-target

Run tests-targets in a terminal, now you can copy text. When copying a simple text you should get a result like the following:

mike ~/Développement/xfce/plugins/clipman/trunk  $  ./tests/test-targets 
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain

TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain

It is printed in double because the plugin makes a copy to be the owner. When the plugin isn't running or deactivated it prints only one message.

Thanks in advance for help debugging!
Comment 5 Christoph 2009-06-19 11:34:31 CEST
OK Mike, there we go. Sorry it took me some days to do this test, and thanks for the comprehensive guidance. 
I'm on Xubuntu 9.04 now. I can also try it on 9.10alpha2 if necessary, but from what I understand, I'm going to get the most recent version of clipman anyway. 

> 1- apt-get remove xfce4-clipman-plugin
>    first uninstall the ubuntu package
Done. 

> 2- apt-get build-dep xfce4-clipman-plugin
>    this will install all the needed tools and deps to build from source
Done. Many packages have been installed. 

> 3- svn co http://svn.xfce.org/svn/goodies/xfce4-clipman-plugin/trunk clipman
>    this will checkout the svn source into the local directory clipman
Done. I had to install subversion first, but I assume that's fine. 

> 4- cd clipman
> 5- ./autogen.sh && make
I seem to be missing some tools: 
"autogen.sh: You don't seem to have the Xfce development tools installed on
            your system, which are required to build this software.
            Please install the xfce4-dev-tools package first, available from
            http://xfce.org/~benny/projects/xfce4-dev-tools/."
I guess this is what I can also get in the Ubuntu package xfce4-dev-tools, so I install it... and autogen starts to work... but still misses something (libxfconf, libglade2), so I install the libxfconf-0-dev and libglade2-dev packages... now there's no more error message. 

> 6- make install
Seems to be OK. 

> There is a small test program to build that can be useful too.
> 7- make -C tests
>    this will build tests-target
It complains: "$ make -C tests
make: Entering directory `/home/christoph/clipman/tests'
make: Nothing to be done for `all'.
make: Leaving directory `/home/christoph/clipman/tests'"

> Run tests-targets in a terminal, now you can copy text. When copying a simple
> text you should get a result like the following: (...)
The pure command tests-targets was not found. However, I found a file clipman/tests/test-targets (without the extra s after test) and executed it ($ ./test-targets). I added the clipman plugin to the panel, copied some text and tried to paste it by clicking the clipman icon and then the appropriate entry in the popup list. Nothing is pasted. So I paste it with ctrl-v, which works. 

Output in the terminal: 
--
$ ./test-targets 
TIMESTAMP
TARGETS
MULTIPLE
text/html
text/_moz_htmlcontext
text/_moz_htmlinfo
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/x-moz-url-priv

TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain

TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain

TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain
--

The about window of the plugin says: "Clipman 1.0.2svn-r07618".

Anything else I can do?
Comment 6 Mike Massonnet editbugs 2009-06-20 13:49:35 CEST
(In reply to comment #5)
> > 2- apt-get build-dep xfce4-clipman-plugin
> >    this will install all the needed tools and deps to build from source
> Done. Many packages have been installed. 

To remove the plugin run make uninstall. To remove the build dependencies I believe there is no automatic way. I had recommend to use /var/log/dpkg.log and pass the installed packages to apt-get remove.

For instance (assuming you installed the packages the 19 June):
grep 2009-06-19 /var/log/dpkg.log | grep " installed "

If the list looks correct you can pass it in one command to apt-get remove:
apt-get remove $(grep 2009-06-19 /var/log/dpkg.log | grep " installed " | awk '{print $5}')

If the list is mixed with other packages you can fine down with the time e.g. grep "2006-06-09 16:20". You can also specify a time range for example "2[123]" matches 21, 22 and 23.

Now you can reinstall clipman from the Ubuntu package.

> > 5- ./autogen.sh && make
> I seem to be missing some tools: 
> ... but still misses something
> (libxfconf, libglade2), so I install the libxfconf-0-dev and libglade2-dev
> packages... now there's no more error message. 

That libxfconf and libglade were missing is an error in the deb package and it should eventually be reported. These packages had should be installed during the apt-get build-dep command.

> I added the clipman plugin to the panel, copied some text and
> tried to paste it by clicking the clipman icon and then the appropriate entry
> in the popup list. Nothing is pasted. So I paste it with ctrl-v, which works. 

Now I understand your problem, sorry for not understanding it before. Indeed what you are trying to do doesn't work. When you select an item in the menu it changes the content of the current clipboard only, it does not try to paste it anywhere. Once the clipboard content is changed it is up to you to paste it somewhere.

Sorry again, for the wasted time of installing from svn.
Comment 7 Christoph 2009-06-20 14:06:01 CEST
Oh no, I am sorry for starting this. Indeed it works, except for copying from OpenOffice, but that seems to be a known issue.
Just one thought: How could we stop other people from misunderstanding the system the way I did? Some ideas: 
* Change the behaviour so that the selected entry gets pasted directly; then keep that entry in the default clipboard for further use (ctrl-v etc.). 
* Show a message that explains the way it works when it's installed / used for the first time. 
* Show such a message when the user switches to another entry before he has pasted what he selected. 
* Include a short explanation in the popup menu (shortest version I can think of: "Pick one, then paste normally")
* Include an entry in the popup menu "How does it work?" that opens a short explanation. 

If I'm not mistaken, the MS Office clipboard manager works the way I thought Clipman worked. So I think other users are likely to step in the same trap. 

And thanks for helping to revert the changes I made!

Bug #5309

Reported by:
Christoph
Reported on: 2009-04-28
Last modified on: 2012-04-09

People

Assignee:
Mike Massonnet
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information