Bug 378384 - Allow services to intercept file open events
Summary: Allow services to intercept file open events
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 18.04.1
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-02 23:13 UTC by Andrew Morgan
Modified: 2018-05-18 18:08 UTC (History)
2 users (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 Andrew Morgan 2017-04-02 23:13:27 UTC
Hey all, 

I'm trying to develop an plugin to complete certain actions when opening a file on a per-file basis, and to my understanding this is currently not possible as a part of Dolphin.

Would there be interest in extending the current plugins system to call an service during a file open (double-click file) event? Would there be any objection if I started working on a PR for it?

Thanks!
Comment 1 Elvis Angelaccio 2017-04-03 21:51:42 UTC
Hi, what exactly do you want to do and what is currently missing?
Comment 2 Andrew Morgan 2017-04-03 23:07:43 UTC
(In reply to Elvis Angelaccio from comment #1)
> Hi, what exactly do you want to do and what is currently missing?

Sorry if I wasn't too clear. When opening a file in Dolphin I'd like to have my extension check some attributes of the file and open a specific program based on those attributes. Similar to what is done for file types now, but on a per-file basis.

As far as I know this can't be currently done, is that correct?
Comment 3 Elvis Angelaccio 2017-04-21 16:45:39 UTC
That's correct, but I'm not sure if this can be done at all. Feel free to submit a patch if you like :)
Comment 4 Julian Steinmann 2018-05-18 18:08:43 UTC
I'll treat this report as a wish. It'd be nice to have this feature, but it's not a deal breaker for most users. If you want to submit a patch, please do so over at phabricator.kde.org.