Bug 440726 - MIME-based actions for copied images
Summary: MIME-based actions for copied images
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (other bugs)
Version First Reported In: 5.22.4
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-08 08:57 UTC by Corentin Girard
Modified: 2023-05-17 00:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Corentin Girard 2021-08-08 08:57:02 UTC
SUMMARY

Currently, MIME-based actions work for images **when you copied its filename** (with the `file://` protocol).

It could be cool that it works with copied images too (raw image).

I wanted to use a work-around like this command:

```
xclip -sel clip -t image/png -o > /tmp/clipboard.png && gwenview /tmp/clipboard.png
```

But I'm not able to create an action for images because it needs a regex.

STEPS TO REPRODUCE
1. Copy a raw image (not from the file explorer)
2. Enable MIME-based actions
3. Click "Invoke action"

OBSERVED RESULT

It shows nothing.

EXPECTED RESULT

It should show MIME-based actions for the image, with the MIME "image/png" for example.

SOFTWARE/OS VERSIONS
Linux: 5.13.5
KDE Plasma Version: 5.22.4
Comment 1 Nate Graham 2023-05-17 00:33:10 UTC
It's a cool idea, but given the lack of movement for so long, I think this is unlikely to be implemented unless someone submits a merge request to do it. Accordingly, I'm going to close this request so that the list of requested features better reflects work in progress or under active consideration. This doesn't mean that the idea is being vetoed, just that there aren't resources to consider implementing it absent volunteer contributions to do so--for which no formal feature request is needed. Thanks for understanding!