Bug 369623 - Kate Document dbus bindings missing
Summary: Kate Document dbus bindings missing
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: 16.04
Platform: Other Linux
: NOR critical
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-02 04:07 UTC by Luke-Jr
Modified: 2018-07-14 20:28 UTC (History)
2 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 Luke-Jr 2016-10-02 04:07:04 UTC
I have a script I run when I'm concerned that my system may suddenly die. Among the various things it does, is go through all my open KWrite/Kate windows and dump the current contents of them to a temporary directory. However, the dbus bindings for documents seem to be missing since I switched from KDE 4 to 5, and I see no alternative way to access the text content of the editors.

Reproducible: Always
Comment 1 Luke-Jr 2016-11-14 09:12:21 UTC
https://git.reviewboard.kde.org/r/129398/
Comment 2 Christoph Cullmann 2017-07-24 23:00:39 UTC
Actually I would like to avoid having QDBus as dependency for the framework.

Exposing that to dbus might not be wanted by all applications embedding the part, as this allows "unwanted" modifications of the document content without any application control.

Actually, for your usecase, we always have swap files which will avoid any data-loss, even on sudden system crashs.
Comment 3 Luke-Jr 2018-02-16 16:24:27 UTC
> Exposing that to dbus might not be wanted by all applications embedding the
> part, as this allows "unwanted" modifications of the document content without
> any application control.

Perhaps the readonly attribute should be enforced on dbus access?

> Actually, for your usecase, we always have swap files which will avoid any
> data-loss, even on sudden system crashs.

Not for untitled/unsaved editors...?
Comment 4 Luke-Jr 2018-02-16 16:24:41 UTC
Moved the patch to https://phabricator.kde.org/D10587
Comment 5 Christoph Cullmann 2018-07-14 20:28:05 UTC
I still not see that such an interface makes sense.

I agree on the issue with no swap files for unsaved documents.
That is an issue.
There is bug 394833 for that and any solution is highly appreciated.

A solution for that will help all users, this will only help more or less one user and introduce again QtDBus dependencies + overhead for each document.

Any help for the other bug 394833 is appreciated, as I now wrote into the review request, too.