Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/krun.h
Show First 20 Lines • Show All 246 Lines • ▼ Show 20 Line(s) | 246 | enum RunFlag { | |||
---|---|---|---|---|---|
247 | DeleteTemporaryFiles = 0x1, ///< the URLs passed to the service will be deleted when it exits (if the URLs are local files) | 247 | DeleteTemporaryFiles = 0x1, ///< the URLs passed to the service will be deleted when it exits (if the URLs are local files) | ||
248 | RunExecutables = 0x2, ///< Whether to run URLs that are executable scripts or binaries @see isExecutableFile() @since 5.31 | 248 | RunExecutables = 0x2, ///< Whether to run URLs that are executable scripts or binaries @see isExecutableFile() @since 5.31 | ||
249 | }; | 249 | }; | ||
250 | Q_DECLARE_FLAGS(RunFlags, RunFlag) | 250 | Q_DECLARE_FLAGS(RunFlags, RunFlag) | ||
251 | 251 | | |||
252 | /** | 252 | /** | ||
253 | * Run an application (known from its .desktop file, i.e. as a KService) | 253 | * Run an application (known from its .desktop file, i.e. as a KService) | ||
254 | * | 254 | * | ||
255 | * Unlike runService, this does not wait for the application to register to D-Bus | 255 | * If you need to wait for the application to register to D-Bus, use D-Bus activation instead. | ||
256 | * before returning. Such behavior is better done with D-Bus activation anyway. | 256 | * | ||
257 | * If you don't need the prompt for asking the user whether to add the executable bit for | ||||
258 | * desktop files or binaries that don't have it, you can use KIO::ProcessLauncherJob from KIOGui directly. | ||||
257 | * | 259 | * | ||
258 | * @param service the service to run | 260 | * @param service the service to run | ||
259 | * @param urls the list of URLs, can be empty (app launched | 261 | * @param urls the list of URLs, can be empty (app launched | ||
260 | * without argument) | 262 | * without argument) | ||
261 | * @param window The top-level widget of the app that invoked this object. | 263 | * @param window The top-level widget of the app that invoked this object. | ||
262 | * @param flags various flags | 264 | * @param flags various flags | ||
263 | * @param suggestedFileName see setSuggestedFileName | 265 | * @param suggestedFileName see setSuggestedFileName | ||
264 | * @param asn Application startup notification id, if any (otherwise ""). | 266 | * @param asn Application startup notification id, if any (otherwise ""). | ||
▲ Show 20 Lines • Show All 408 Lines • Show Last 20 Lines |