CristianHenzel / ClipIt

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

Hot keys not working since 1.4.4-2 on Debian testing 64-bit #97

Closed stefanos82 closed 4 years ago

stefanos82 commented 6 years ago

Since 2018-07-12 that clipit got upgraded to version 1.4.4-2, its hotkeys are not working at all.

When I press Ctrl-Alt-F to open Manage History, it doesn't do anything at all.

When I press Ctrl-Alt-H to open History, I get the following window:

image

Can we do something about it?

afelinczak commented 4 years ago

@Darcidride uploaded deb file with app indicator flag on. Please let me know if this fix icon issue.

BetterToAutomateTheWorld commented 4 years ago

@afelinczak Still no icon in my side

I'm using this version of clipit from your personal repo (focal version)

clipit:
  Installed: 1.4.5+git20200624-1ppa1
  Candidate: 1.4.5+git20200624-1ppa1
  Version table:
 *** 1.4.5+git20200624-1ppa1 500
        500 http://ppa.launchpad.net/afelinczak/ppa/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     1.4.4+git20190202-2 900
        100 https://deb.debian.org/debian unstable/main amd64 Packages
        900 https://deb.debian.org/debian testing/main amd64 Packages
     1.4.4+git20190202-1 -20
        -20 https://deb.debian.org/debian stable/main amd64 Packages

Some more information if it can help :

$ uname -a
Linux LUNE 4.19.0-4-amd64 #1 SMP Debian 4.19.28-2 (2019-03-15) x86_64 GNU/Linux
$ cat /etc/debian_version
bullseye/sid
gdm3 --version
GDM 3.36.3

But clipit is working great, I'm using it with shortcuts, just no gdm3 status icon

afelinczak commented 4 years ago

hey @Darcidride Sorry for misunderstanding - I uploaded deb file here on github (release section) not to ppa. I may get 2 versions to ppa but on daily basis I'm using Ubuntu Mate and current PPA version works ok for me. Please check this one and let me know if icon works https://github.com/CristianHenzel/ClipIt/releases/download/v1.4.5/clipit_1.4.5_amd64_indicator.deb

BetterToAutomateTheWorld commented 4 years ago

Hi @afelinczak I installed the version linked from the GitHub link The app indicator is there ! :+1: image

I needed to force install since the semversioning is older than the other one I installed, and I apt-mark hold this package just in case

Well, everything is working perfectly in my side, thank you very much for your fix !

SuzanaK commented 4 years ago

Did anyone have luck with the fixed package on Ubuntu 19.10? I tried both packages from the launchpad site and both posted on the github release page but no luck - I get a warning that the binding of the hotkeys failed and nothing else - no icon, no error message.

afelinczak commented 4 years ago

Im not sure if anyone tested on 19.10 @SuzanaK but from the error message I would check if any other app is not using same hotkeys as clipit. I assume you are using deb file from third post above?

SuzanaK commented 4 years ago

yes I used this deb file from above but also this deb file https://github.com/CristianHenzel/ClipIt/releases/download/v1.4.5/clipit_1.4.5_amd64.deb and both from the ppa. None of them worked, I also don't get an icon where I could change the hotkeys. According to the Keyboard Shortcuts, no other application is using e.g. Ctrl+Alt+H which I used for displaying the history. After installing and clicking on "Launch", nothing happens. When I start clipit in the terminal, I get the warning for the hotkeys and then nothing else.

afelinczak commented 4 years ago

Please verify all bindings are free:

History | Ctrl + Alt + h Actions | Ctrl + Alt + a Menu | Ctrl + Alt + p Search | Ctrl + Alt + f Offline mode | Ctrl + Alt + o

SuzanaK commented 4 years ago

Yes, everyone of those is free. But I don' t think that's the problem - the whole app won't start but there's no error message.

SuzanaK commented 4 years ago

Sorry, the failure to start had nothing to do with clipit, I had a problem with my display manager. The package here https://github.com/CristianHenzel/ClipIt/releases/download/v1.4.5/clipit_1.4.5_amd64_indicator.deb works. Sorry for the confusion and thank you!

afelinczak commented 4 years ago

@SuzanaK I tried to test this Today, but 19.10 has reached end of life and I was unable to install clipit as ubuntu repos are not active anymore. I suggest upgrade to 20.04 LTS.

BetterToAutomateTheWorld commented 4 years ago

Maybe someone can add a comment on this project readme, under discontinued, to inform that we can use this package instead of moving to another tool

afelinczak commented 4 years ago

@Darcidride good idea, I have PR open related to meson, will add note to readme.

jekeam commented 3 years ago

Same issue in my case (Debian testing)

Hi, same issue here : image The history pannel is like this, and the preferences panel is freezed after a first click inside it, also the hotkeys to access history clipboard doesn't work anymore...

Some logs :

(clipit:24858): Gtk-CRITICAL **: 14:06:37.634: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(clipit:24858): Gtk-CRITICAL **: 14:06:37.641: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(clipit:24858): Gtk-CRITICAL **: 14:06:37.649: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(clipit:24858): Gtk-CRITICAL **: 14:06:37.650: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(clipit:24858): Gtk-CRITICAL **: 14:06:37.658: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(clipit:24858): Gtk-CRITICAL **: 14:06:37.666: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(clipit:24858): Gtk-CRITICAL **: 14:06:37.674: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(clipit:24858): Gtk-CRITICAL **: 14:06:37.681: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(clipit:24858): Gtk-CRITICAL **: 14:06:37.681: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(clipit:24858): Gtk-CRITICAL **: 14:06:37.689: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(clipit:24858): Gtk-CRITICAL **: 14:06:37.689: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
Clipboard is null, recovering ...
Clipboard is null, recovering ...
Clipboard is null, recovering ...
Clipboard is null, recovering ...
Clipboard is null, recovering ...
Clipboard is null, recovering ...
Clipboard is null, recovering ...
Clipboard is null, recovering ...
Clipboard is null, recovering ...
Clipboard is null, recovering ...
Clipboard is null, recovering ...

I don't know how to fix it, please help us :)

System informations

uname -a : Linux oab-cycd9w1 4.17.0-1-amd64 #1 SMP Debian 4.17.8-1 (2018-07-20) x86_64 GNU/Linux

cat /etc/debian_version : buster/sid

Temporary solution

Since i didn't see any news about a potential fix, I removed my clipit version and switch to the 1.4.2 version for the strethc repository.

If you also need this, here is the steps :

  1. Check the different version you can install
$ apt-cache policy clipit
clipit:
  Installed: 1.4.2-1.2
  Candidate: 1.4.4-2
  Version table:
 *** 1.4.4-2 900
        900 http://http.debian.net/debian buster/main amd64 Packages
        -10 http://http.debian.net/debian unstable/main amd64 Packages
     1.4.2-1.2 100
        -20 http://httpredir.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status

(in my case i'm on Debian testing, so i installed the 1.4.4-2 version of clipit from 'buster/testing' repository)

  1. Then remove clipit (don't purge it, you will loose all your preferences) $ sudo apt autoremove clipit
  2. Now install again clipit but from the repository you want, in my case 'stretch/stable' repository $ sudo apt install -t stretch clipit
  3. Finally, check the installed version :
$ apt-cache policy clipit
clipit:
  Installed: 1.4.2-1.2
  Candidate: 1.4.4-2
  Version table:
     1.4.4-2 900
        900 http://http.debian.net/debian buster/main amd64 Packages
        -10 http://http.debian.net/debian unstable/main amd64 Packages
 *** 1.4.2-1.2 100
        -20 http://httpredir.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status

Enjoy, you will now be able to launch again clipit without a freezed preference panel and with an hotkey working. (and everything else)

Screenshot from 2021-01-18 12-28-20 E: The value 'stretch' is invalid for APT::Default-Release as such a release is not available in the sources

rfc2119 commented 3 years ago

On Debian buster, you need to hold down your shortcut for more time in order for it to be activated (as stated by one of the commenters above). Indeed, it seems the POPUP_DELAY is too large. Also, as described by one user above, sometimes a black rectangle screen pops up on the top left of my screen. Only killing clipit removes it.

Is there a way to configure POPUP_DELAY without compiling from source ?