Bug 378384

Summary: Allow services to intercept file open events
Product: [Applications] dolphin Reporter: Andrew Morgan <andrew>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: elvis.angelaccio, mail
Priority: NOR    
Version First Reported In: 18.04.1   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.