Bug 463240

Summary: Ark Flatpak does not provide Dolphin context menu action to extract and to compress files
Product: [Applications] dolphin Reporter: Denys Madureira <denysmb112007>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED MOVED    
Severity: normal CC: aacid, kfm-devel, nate, rthomsen6
Priority: NOR    
Version: 22.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Service menu to compress
Service menu to extract

Description Denys Madureira 2022-12-19 16:20:09 UTC
SUMMARY
The Flatpak version of Ark does not provide Dolphin context menu action to extract or compress files.

STEPS TO REPRODUCE
1.  Install Ark Flatpak
2. Right click on a compacted file to see there is no action on context menu to extract
3. Right click on any file to see there is no action on context menu to compress

OBSERVED RESULT
There is no action on Dolphin context menu to extract and compress files

EXPECTED RESULT
To have action on Dolphin context menu to extract and compress files

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
A possible easy and quick solution (for the Flatpak version) could be do as was done before on Ark 16.04 and provide the .desktop files of the services menu on $HOME/.local/share/flatpak/exports/share/kservices5/ServiceMenus/
The two files provided were: ark_addtoservicemenu.desktop and ark_servicemenu.desktop
All we need to do is change "ark" to "flatpak run org.kde.ark" on the Exec commands.
Comment 1 Denys Madureira 2022-12-19 16:20:54 UTC
Created attachment 154696 [details]
Service menu to compress
Comment 2 Denys Madureira 2022-12-19 16:21:06 UTC
Created attachment 154697 [details]
Service menu to extract
Comment 3 Denys Madureira 2022-12-19 16:21:43 UTC
I realize that I forgot to share my SOFTWARE/OS VERSIONS.

Operating System: openSUSE MicroOS 20221214
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.12-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 30,7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 4 Nate Graham 2023-01-05 21:12:46 UTC
Unfortunately this is impossible to provide in that exact way due to how Flatpak works: apps are containerized and are not able to provide content or functionality for other apps. This is quite limiting for KDE apps, which regularly provide functionality for one another.

For now, the only thing we could do is embed Ark's context menu functionality inside of Dolphin's Flatpak build, so that you always have it in Dolphin even if Ark isn't installed.
Comment 5 Nate Graham 2023-01-05 21:13:34 UTC
Actually the packaging isn't done here; can you file a bug report about it over at https://github.com/flathub/org.kde.dolphin/issues? Thanks a lot!