#### PyKDE - Python Bindings for KDE

# class KRun |
Table of contents
Modules
tdeio Classes
All Classes

Module | tdeio
Class | KRun
Inherits | TQObject

### 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 | TQWidget |
  mode | mode_t | 0
  isLocalFile | bool | 0
  showProgressInfo | bool | 1

- abort ()

  returns nothing

- autoDelete ()

  returns (bool)

- binaryName (execLine, removePath)

  returns (TQString)
  In versions KDE 3.1.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  execLine | TQString |
  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 | TQString |
  service | KService |
  wmclass_arg | TQCString |

- 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 | TQString |

- error ()

  returns nothing

- finished ()

  returns nothing

- foundMimeType (_type)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  _type | TQString |

- 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 | TQString |

- isExecutableFile (url, mimetype)

  returns (bool)
  In versions KDE 3.3.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  url | KURL |
  mimetype | TQString |

- killJob ()

  returns nothing

- processDesktopExec (_service, _urls, has_shell, tempFiles)

  returns (TQStringList)
  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 (TQStringList)
  static
  Argument | Type | Default
  --- | --- | ---
  _service | KService |
  _urls | KURL.List |
  has_shell | bool |

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

  returns (TQStringList)
  In versions KDE 3.5.3 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  _service | KService |
  _urls | KURL.List |
  has_shell | bool |
  tempFiles | bool |
  suggestedFileName | TQString |

- 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 | TQWidget |
  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 | TQWidget |
  tempFiles | bool |
  suggestedFileName | TQString |

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

  returns (pid_t)
  static
  Argument | Type | Default
  --- | --- | ---
  _exec | TQString |
  _urls | KURL.List |
  _name | TQString | TQString .null
  _icon | TQString | TQString .null
  _obsolete1 | TQString | TQString .null
  _obsolete2 | TQString | TQString .null

- runCommand (cmd)

  returns (pid_t)
  static
  Argument | Type | Default
  --- | --- | ---
  cmd | TQString |

- runCommand (cmd, execName, icon)

  returns (pid_t)
  static
  Argument | Type | Default
  --- | --- | ---
  cmd | TQString |
  execName | TQString |
  icon | TQString |

- runURL (_url, _mimetype, tempFile, runExecutables)

  returns (pid_t)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _mimetype | TQString |
  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 | TQString |
  tempFile | bool |

- runURL (_url, _mimetype)

  returns (pid_t)
  static
  Argument | Type | Default
  --- | --- | ---
  _url | KURL |
  _mimetype | TQString |

- 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 | TQString |
  tempFile | bool |
  runExecutables | bool |
  suggestedFileName | TQString |

- 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 | TQString |

- 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 | TQString |

- shellQuote (_str)

  returns nothing
  static
  Argument | Type | Default
  --- | --- | ---
  _str | TQString |

- slotScanFinished (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | _TDEIO.Job |

- slotScanMimeType (a0, type)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | _TDEIO.Job |
  type | TQString |

- slotStatResult (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | _TDEIO.Job |

- slotTimeout ()

  returns nothing