Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/krun.h
| Show First 20 Lines • Show All 436 Lines • ▼ Show 20 Line(s) | 436 | #endif | |||
|---|---|---|---|---|---|
| 437 | 437 | | |||
| 438 | /** | 438 | /** | ||
| 439 | * Returns whether @p serviceType refers to an executable program instead | 439 | * Returns whether @p serviceType refers to an executable program instead | ||
| 440 | * of a data file. | 440 | * of a data file. | ||
| 441 | */ | 441 | */ | ||
| 442 | static bool isExecutable(const QString &serviceType); | 442 | static bool isExecutable(const QString &serviceType); | ||
| 443 | 443 | | |||
| 444 | /** | 444 | /** | ||
| 445 | * Returns whether the @fileName file has the execute bit set or not. | ||||
| 446 | */ | ||||
| 447 | static bool hasExecuteBit(const QString &fileName); | ||||
| 448 | | ||||
| 449 | /** | ||||
| 445 | * Returns whether the @p url of @p mimetype is executable. | 450 | * Returns whether the @p url of @p mimetype is executable. | ||
| 446 | * To be executable the file must pass the following rules: | 451 | * To be executable the file must pass the following rules: | ||
| 447 | * -# Must reside on the local filesystem. | 452 | * -# Must reside on the local filesystem. | ||
| 448 | * -# Must be marked as executable for the user by the filesystem. | 453 | * -# Must be marked as executable for the user by the filesystem. | ||
| 449 | * -# The mime type must inherit application/x-executable, application/x-executable-script or application/x-sharedlib. | 454 | * -# The mime type must inherit application/x-executable, application/x-executable-script or application/x-sharedlib. | ||
| 450 | * To allow a script to run when the above rules are satisfied add the entry | 455 | * To allow a script to run when the above rules are satisfied add the entry | ||
| 451 | * @code | 456 | * @code | ||
| 452 | * X-KDE-IsAlso=application/x-executable-script | 457 | * X-KDE-IsAlso=application/x-executable-script | ||
| ▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines | |||||