Bug 267256 - Klipper action does not get invoked automatically
Summary: Klipper action does not get invoked automatically
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: 5.15.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Martin Flöser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-27 15:31 UTC by Robin Green
Modified: 2023-08-10 17:07 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Green 2011-02-27 15:31:47 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

I cannot invoke an action on the current clipboard, either automatically or manually. I cannot even get a tick to appear next to the URL in the clipboard, even though it is the current contents of the clipboard.

Reproducible: Always

Steps to Reproduce:
1. Start klipper
2. Clear clipboard history
3. Enable automatic actions in klipper
4. Select the URL http://paste.pocoo.org/raw/293557/
5. Press CTRL+C to copy it 

Actual Results:  
Nothing happens

Expected Results:  
Some program should open that URL

OS: Linux (x86_64) release 2.6.38-0.rc5.git7.1.fc15.x86_64
Compiler: gcc
Comment 1 Jekyll Wu 2011-11-06 19:16:46 UTC
A context menu should appear after pressing Ctrl+C for copying that URL(at least for me). I am using klipper 0.9.7 in KDE 4.7.3.
Comment 2 Jekyll Wu 2011-12-14 13:51:20 UTC
Works for me when using KDE SC 4.8 beta2. I just saved the reporter text into a text file and opened it with kate, then after copying that "http://paste.pocoo.org/raw/293557/", the action was triggered and the popup menu appeared. Did you copy that URL in web browser?  Actions are disabled by default for some applications, notably web browsers.

Feel free to reopen if it still happens in recent version .
Comment 3 Robin Green 2012-05-05 21:06:14 UTC
Still seeing this on KDE 4.8.2.
Comment 4 Robin Green 2012-05-05 21:11:36 UTC
Ah, but now it's slightly better - "Manually invoke action on current clipboard" now works, but automatic actions for URLs don't.
Comment 5 sparhawk 2013-01-14 10:25:17 UTC
I'm not sure if there is some confusion here. Current;y, it seems that the "automatic" checkbox only makes the pop-up window appear "automatically", when the regex is seen. From the "Expected Results" in the report, it seems that you expect the actions to automatically execute as well? If so, I agree; this would be a useful addition to klipper.
Comment 6 Robin Green 2018-11-09 03:31:05 UTC
"Automatic" simply does not do anything. The popup doesn't appear. This is still the case in plasma-workspace-5.13.5.
Comment 7 jbn 2020-12-21 18:29:52 UTC
I concur with Robin Green in Comment #6 -- the "automatic" checkbox appears to do nothing. I also agree with you, automatic actions which match should execute as well.

I think it should automatically execute the action for which automatic action is selected, no pop-up needed. If the content of the clipboard matches the regular expression and the automatic bit is on, execute the automatic action. Perhaps there are multiple actions with matching regular expressions and the automatic bit set, in that case execute them all one by one.

If that's not what automatic was meant to mean, perhaps there could be some documentation listing what "automatic" means (and perhaps a better term other than "automatic" should be chosen because the word automatic seems to be misleading). Some docs on klipper's actions written by anyone who knows how they work (including some examples) would be welcomed.
Comment 8 Noah Davis 2023-08-10 17:07:17 UTC
This bug is for 4.6.0, not 5.15.3, so I'm marking this as resolved unmaintained. If anyone has a similar issue, please make a new bug report since it's likely that the code involved has changed since this bug was submitted.

Just in case, I tested the automatic popup menu that is currently available in Klipper and it works fine for the most part. To test it, you need to have some actions set up and in the config dialog, you need to check "Show action popup menu: [x] Immediately on selection". For some reason, Firefox doesn't work with the popup menu, but Qt apps, Gtk apps and Chromium do.