#### PyKDE - Python Bindings for KDE

# class KRun

Table of contents
Modules
kio Classes
All Classes

Module | kio
Class | KRun
Inherits | QObject

### methods

- KRun (url, mode = 0, isLocalFile = 0, showProgressInfo = 1)

  returns a KRun instance

  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  mode | mode_t | 0
  isLocalFile | bool | 0
  showProgressInfo | bool | 1

- KRun (url, window, mode = 0, isLocalFile = 0, showProgressInfo = 1)

  returns a KRun instance
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  window | QWidget |
  mode | mode_t | 0
  isLocalFile | bool | 0
  showProgressInfo | bool | 1

- abort ()

  returns nothing

- autoDelete ()

  returns (bool)

- binaryName (execLine, removePath)

  returns (QString)
  In versions KDE 3.1.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  execLine | QString |
  removePath | bool |

- checkStartupNotify (binName, service, wmclass_arg)

  returns (bool) silent_arg (bool)
  In versions KDE 3.4.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  binName | QString |
  service | KService |
  wmclass_arg | QCString |

- displayOpenWithDialog (lst, tempFiles)

  returns (bool)
  In versions KDE 3.1.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  lst | KURL.List |
  tempFiles | bool |

- displayOpenWithDialog (lst)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  lst | KURL.List |

- displayOpenWithDialog (lst, tempFiles, suggestedFileName)

  returns (bool)
  In versions KDE 3.5.3 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  lst | KURL.List |
  tempFiles | bool |
  suggestedFileName | QString |

- error ()

  returns nothing

- finished ()

  returns nothing

- foundMimeType (_type)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  _type | QString |

- hasError ()

  returns (bool)

- hasFinished ()

  returns (bool)

- init ()

  returns nothing

- isExecutable (serviceType)

  returns (bool)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  serviceType | QString |

- isExecutableFile (url, mimetype)

  returns (bool)
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  mimetype | QString |

- killJob ()

  returns nothing

- processDesktopExec (_service, _urls, has_shell, tempFiles)

  returns (QStringList)
  In versions KDE 3.1.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  _service | KService |
  _urls | KURL.List |
  has_shell | bool |
  tempFiles | bool |

- processDesktopExec (_service, _urls, has_shell)

  returns (QStringList)
  static

  Argument | Type | Default
  --- | --- | ---
  _service | KService |
  _urls | KURL.List |
  has_shell | bool |

- processDesktopExec (_service, _urls, has_shell, tempFiles, suggestedFileName)

  returns (QStringList)
  In versions KDE 3.5.3 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  _service | KService |
  _urls | KURL.List |
  has_shell | bool |
  tempFiles | bool |
  suggestedFileName | QString |

- run (_service, _urls, window, tempFiles = 0)

  returns (pid_t)
  In versions KDE 3.5.2 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  _service | KService |
  _urls | KURL.List |
  window | QWidget |
  tempFiles | bool | 0

- run (_service, _urls, tempFiles)

  returns (pid_t)
  In versions KDE 3.1.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  _service | KService |
  _urls | KURL.List |
  tempFiles | bool |

- run (_service, _urls)

  returns (pid_t)
  static

  Argument | Type | Default
  --- | --- | ---
  _service | KService |
  _urls | KURL.List |

- run (_service, _urls, window, tempFiles, suggestedFileName)

  returns (pid_t)
  In versions KDE 3.5.3 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  _service | KService |
  _urls | KURL.List |
  window | QWidget |
  tempFiles | bool |
  suggestedFileName | QString |

- run (_exec, _urls, _name = QString .null, _icon = QString .null, _obsolete1 = QString .null, _obsolete2 = QString .null)

  returns (pid_t)
  static

  Argument | Type | Default
  --- | --- | ---
  _exec | QString |
  _urls | KURL.List |
  _name | QString | QString .null
  _icon | QString | QString .null
  _obsolete1 | QString | QString .null
  _obsolete2 | QString | QString .null

- runCommand (cmd)

  returns (pid_t)
  static

  Argument | Type | Default
  --- | --- | ---
  cmd | QString |

- runCommand (cmd, execName, icon)

  returns (pid_t)
  static

  Argument | Type | Default
  --- | --- | ---
  cmd | QString |
  execName | QString |
  icon | QString |

- runURL (_url, _mimetype, tempFile, runExecutables)

  returns (pid_t)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _mimetype | QString |
  tempFile | bool |
  runExecutables | bool |

- runURL (_url, _mimetype, tempFile)

  returns (pid_t)
  In versions KDE 3.1.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _mimetype | QString |
  tempFile | bool |

- runURL (_url, _mimetype)

  returns (pid_t)
  static

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _mimetype | QString |

- runURL (_url, _mimetype, tempFile, runExecutables, suggestedFileName)

  returns (pid_t)
  In versions KDE 3.5.3 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _mimetype | QString |
  tempFile | bool |
  runExecutables | bool |
  suggestedFileName | QString |

- scanFile ()

  returns nothing

- setAutoDelete (b)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setEnableExternalBrowser (b)

  returns nothing
  In versions KDE 3.4.0 and above only

  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setPreferredService (desktopEntryName)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  desktopEntryName | QString |

- setRunExecutables (b)

  returns nothing
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setSuggestedFileName (fileName)

  returns nothing
  In versions KDE 3.5.3 and above only

  Argument | Type | Default
  --- | --- | ---
  fileName | QString |

- shellQuote (_str)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  _str | QString |

- slotScanFinished (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KIO.Job |

- slotScanMimeType (a0, type)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KIO.Job |
  type | QString |

- slotStatResult (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KIO.Job |

- slotTimeout ()

  returns nothing