! 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 !
xfce4-popup-clipman cannot be launched (reliably) via keyboard shortcut
Status:
CLOSED: FIXED
Product:
Xfce4-clipman-plugin
Component:
General

Comments

Description Dietmar Schabus 2009-10-26 10:04:34 CET
I'm on Ubuntu Jaunty. Since the repositories only provide version 0.9.0 of xfce4-clipman-plugin, I downloaded xfce4-clipman-plugin-1.1.1.tar.bz2 from http://goodies.xfce.org/projects/panel-plugins/xfce4-clipman-plugin and installed from source.

It works fine except that I am unable to bring up the popup from a keyboard shortcut. If I run xfce4-popup-clipman in a terminal, it works. If I run it from xfbrun4, it works, even without ticking "Run in terminal". However, if I add a keyboard shortcut in xfce4-keyboard-settings for xfce4-popup-clipman and hit the shortcut, the clipman icon on my panel does get highlighted, but the popup-list does not show up. To "unhighlight" the icon, I have to click on it.

If I configure the shortcut to "xfce4-terminal -e xfce4-popup-clipman" it works again, but a terminal window appears for a split second, which is not desirable.

I noticed just now that even without the terminal-workaround, the keyboard shortcut _does_ sometimes bring up the popup, but only about 20% of the times, for which I don't see a pattern. All other ways of bringing up the popup don't suffer from this instability.

I might well be that the problem does not even lie in xfce4-clipman-plugin itself, but since it's the package I'm experiencing the problem with, I'm reporting it here.

I'd be happy to provide more information or try different versions, please let me know. Maybe I should add that this is not Xubuntu, but was originally a Kubuntu on which I installed xfce. Everything is up to date (minus a few days).
Comment 1 Mike Massonnet editbugs 2009-10-28 13:36:17 CET
Is it possible that your panel is set to autohide?
Comment 2 Dietmar Schabus 2009-10-28 16:03:32 CET
No, my panel is not set to autohide.

I can confirm the same behavior on a second machine, also Jaunty, but this time installed via apt from karmic (xfce4-clipman-plugin 1.0.2-1).(In reply to comment #1)
> Is it possible that your panel is set to autohide?
Comment 3 Mike Massonnet editbugs 2009-10-28 16:17:20 CET
Yeah I figured it was a wrong assumption. I was able to reproduce it only once in lets say a hundred times prolly. I will look into it. The code in question is panel-plugin/xfce4-popup-clipman.c and panel-plugin/plugin.c.
Comment 4 Mike Massonnet editbugs 2009-10-30 10:22:06 CET
Can you let me know if using clipman from the systray is more reliable?

As the technique between the systray and the panel is the same e.g. a signal is sent and the callback is responsible to popup the menu, I had like to know if I have to switch completely to a different method for poping up the menu.

You will have to remove the panel plugin and launch xfce4-clipman (available within Xfce Menu > Accessories).
Comment 5 Dietmar Schabus 2009-10-30 10:29:13 CET
(In reply to comment #4)
> Can you let me know if using clipman from the systray is more reliable?

It behaves exactly the same way, unfortunately.
Comment 6 Mike Massonnet editbugs 2009-10-30 10:35:40 CET
I can already make a statement! I tested and I can reproduce it very often from the systray so I'm gonna change the popup code.
Comment 7 Mike Massonnet editbugs 2009-10-30 22:48:42 CET
I know how the bug reproduces but I'm not sure if I'll be able to find a clean workaround...

When you press the keyboard shortcut to long it can often bug, while when you type the shortcut very quickly it will usually work without a problem. It's definitely an awkard bug.

When I change the code by wrapping a function for the popup command instead of using the signals it definitely works better however.
Comment 8 Mike Massonnet editbugs 2009-11-01 01:47:30 CET
Found a workaround in xfdesktop and I just pushed it to git.

Bug #5909

Reported by:
Dietmar Schabus
Reported on: 2009-10-26
Last modified on: 2012-04-09

People

Assignee:
Mike Massonnet
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information