Dolphin Services: Launch Deb/Rpm archives with QDesktopServices
ClosedPublic

Authored by alex on Apr 13 2020, 2:17 PM.

Details

Summary

When you are inside the services store and you choose to install a deb/rpm package
they open in the default application (most likely a package installer utility like discover).

Test Plan

Tests still pass, try out what was described in the summary.
A product which has a deb/rpm package is for example: Jetbrains Dolphin Plugin

Diff Detail

Repository
R318 Dolphin
Branch
dolphin_service_menu_deb_rpm (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 25162
Build 25180: arc lint + arc unit
alex created this revision.Apr 13 2020, 2:17 PM
Restricted Application added a project: Dolphin. · View Herald TranscriptApr 13 2020, 2:17 PM
Restricted Application added a subscriber: kfm-devel. · View Herald Transcript
alex requested review of this revision.Apr 13 2020, 2:17 PM
ngraham added inline comments.Apr 13 2020, 2:55 PM
src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp
39 ↗(On Diff #80015)

unrelated to this patch; don't change it here regardless

90 ↗(On Diff #80015)

unrelated to this patch; don't change it here regardless

279 ↗(On Diff #80015)

unrelated to this patch; don't change it here regardless

331 ↗(On Diff #80015)

Why change this?

alex added inline comments.Apr 13 2020, 3:10 PM
src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp
331 ↗(On Diff #80015)

Otherwise the QDesktopServices can't be used

alex added a comment.EditedApr 13 2020, 3:15 PM

And regarding the todos I added: I just wanted to get some feedback on the ideas before creating a patch for them.
Or should I create a task, even for smaller issues/ideas like this?

In D28795#647238, @alex wrote:

And regarding the todos I added: I just wanted to get some feedback on the ideas before creating a patch for them.
Or should I create a task, even for smaller issues/ideas like this?

Yeah, open a phab task, or even better, just open a new patch for the proposed changes and have the discussion there. :)

Adding TODO comments into this unrelated patch is just an additional barrier to merging though, as you need to remove them before we can land it.

alex updated this revision to Diff 80019.Apr 13 2020, 3:30 PM

Remove todos

Thanks, I will do that next time :-)

Thanks!

src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp
207

Theoretically people could put .appimage or .flatpakref files in here too, right? Maybe we should handle those too.

alex added inline comments.Apr 13 2020, 3:50 PM
src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp
207

What would be the usecase for this?
The services that are installed are .desktop files or plugins that are loaded by dolphin.

nicolasfella added inline comments.
src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp
29

Drop the QtGui/ prefix

ngraham added inline comments.Apr 13 2020, 3:54 PM
src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp
207

Ah, of course.

alex updated this revision to Diff 80023.Apr 13 2020, 3:55 PM

Drop QtGui/ prefix

alex edited the summary of this revision. (Show Details)Apr 13 2020, 3:57 PM
nicolasfella added inline comments.Apr 13 2020, 4:01 PM
src/settings/services/servicemenuinstaller/CMakeLists.txt
7 ↗(On Diff #80015)

Why Widgets? Qt5::Gui should be enough

alex updated this revision to Diff 80026.Apr 13 2020, 4:06 PM

Change to Qt5::Gui

No reason, just forgot to change this^^

elvisangelaccio accepted this revision.Apr 13 2020, 6:08 PM

Please push to release/20.04.

This revision is now accepted and ready to land.Apr 13 2020, 6:08 PM
ngraham accepted this revision.Apr 13 2020, 7:09 PM

I was about to say the very same thing. :)

This revision was automatically updated to reflect the committed changes.