Bug 499455

Summary: Kup integration into Dolphin menu
Product: [Applications] kup Reporter: qazerr <qazerr>
Component: generalAssignee: Simon Persson <simon.persson>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description qazerr 2025-02-03 11:35:57 UTC
SUMMARY
In Gnome + Deja Dup you can use context menu in File Manager to quickly restore file or files (see screenshots). Would be nice to have such feature in KDE + Kup as well.
I guess nobody was able to make custom context menu b/c kup-filedigger does not support appropriate parameters (like path to file/dir for restore).

It is a feature request and I made a post in https://discuss.kde.org/t/kup-integration-into-dolphin-menu/12639 but i guess it was not noticed.
So i decided to bring this to your attention one last time :-)
Thank you.

STEPS TO REPRODUCE
1. try to find any kup + Dolphin integration
2. see kup-filedigger --help to se that it does not support path for restore

OBSERVED RESULT
no integration at all with Dolphin

EXPECTED RESULT
either official integration or at least new parameters for kup-filedigger so users can create an menu integration for Dolphin

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
https://discuss-cdn.kde.org/uploads/default/original/2X/2/2591e599cea34b0c12a2eee5b1823213ef4e6c8a.jpeg
https://discuss-cdn.kde.org/uploads/default/original/2X/e/ede087bb762d529db93b77f99c82b075206974e6.jpeg
Comment 1 Simon Persson 2025-06-27 07:21:45 UTC
A new parameter (--path) is now added to kup-filedigger, such that it can be opened with a given file or folder already selected. Thanks for taking the time to write down your thoughts.
Comment 2 qazerr 2025-06-27 15:08:13 UTC
(In reply to Simon Persson from comment #1)
> A new parameter (--path) is now added to kup-filedigger, such that it can be
> opened with a given file or folder already selected. Thanks for taking the
> time to write down your thoughts.

awesome! thank you!
do you plan to also provide some official menu for dolphin via kup package?
Comment 3 Simon Persson 2025-06-28 11:21:32 UTC
I have started looking at how it could be done. If I can make one that is only available when relevant then I will try to get that done and shipped. But if not (always shown for all files, regardless if backed up or not and regardless if backup repo is available or not) then it is not so tempting, better as a dolphin menu entry that users who are interested can add themselves.
Comment 4 Simon Persson 2025-09-09 17:17:11 UTC
Git commit 3ad0b2ce1417549a41681c6f3062ab4827bcee23 by Simon Persson.
Committed on 09/09/2025 at 17:14.
Pushed by persson into branch 'master'.

Add a fileitemaction plugin

This adds a plugin for use by file managers to give an additional action
for selected files and folders. The action is to offer restoring
previous version of files or missing files for folders. The action will
only be provided if the selected file is included in a versioned backup
plan and the saved backups are currently available in the system.

Kup daemon gets a new d-bus exported function to get the path of a bup
repository for a given file path. It returns an empty string for files
where no backup is available.

M  +1    -0    CMakeLists.txt
M  +20   -0    daemon/kupdaemon.cpp
M  +1    -0    daemon/kupdaemon.h
A  +18   -0    fileitemaction/CMakeLists.txt
A  +75   -0    fileitemaction/fileitemaction.cpp     [License: GPL(3+eV) GPL(v3.0)]
A  +13   -0    fileitemaction/kupfileitemaction.json

https://invent.kde.org/system/kup/-/commit/3ad0b2ce1417549a41681c6f3062ab4827bcee23