KService: deprecate/slim down KToolInvocation
Open, Needs TriagePublic

Description

kdeinit related parts can be killed, the way to invoke "system email client" needs to be kept

mart created this task.Nov 23 2019, 5:05 PM

Fleshing this task out a bit more.

KToolInvocation::startServiceByDesktopName
becomes ApplicationLaunchJob

KToolInvocation::kdeinitExec
becomes QProcess if it's something that's conceptually the same task and doesn't need startup indicators and processing .desktop files
or ApplicationLaunchJob/CommandLaunchJob if it's starting something new

the way to invoke "system email client" needs to be kept

Wouldn't a QDesktopService::openUrl("mailto:/...") suffice? It surely isn't as pretty though.

dfaure added a subscriber: dfaure.Apr 24 2020, 9:24 AM

Yeah, who needs proper convenient and type-safe C++ API when they can instead mangle arguments into a string and mess up the encoding? :-)