#### PyKDE - Python Bindings for KDE

# class KDesktopFile |
Table of contents
Modules
kdecore Classes
All Classes

Module | kdecore
Class | KDesktopFile
Inherits | KConfig

### methods

- KDesktopFile (fileName, readOnly = 0, resType = "apps")

  returns a KDesktopFile instance
  Argument | Type | Default
  --- | --- | ---
  fileName | QString |
  readOnly | bool | 0
  resType | char | "apps"

- KDesktopFile (a0)

  returns a KDesktopFile instance
  Argument | Type | Default
  --- | --- | ---
  a0 | KDesktopFile |

- copyTo (file)

  returns (KDesktopFile)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  file | QString |

- fileName ()

  returns (QString)

- filename ()

  returns (QString)

- hasActionGroup (group)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  group | QString |

- hasApplicationType ()

  returns (bool)

- hasDeviceType ()

  returns (bool)

- hasLinkType ()

  returns (bool)

- hasMimeTypeType ()

  returns (bool)

- isAuthorizedDesktopFile (path)

  returns (bool)
  In versions KDE 3.1.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  path | QString |

- isDesktopFile (path)

  returns (bool)
  static
  Argument | Type | Default
  --- | --- | ---
  path | QString |

- locateLocal (path)

  returns (QString)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  path | QString |

- readActions ()

  returns (QStringList)

- readComment ()

  returns (QString)

- readDevice ()

  returns (QString)

- readDocPath ()

  returns (QString)
  In versions KDE 3.1.0 and above only

- readGenericName ()

  returns (QString)

- readIcon ()

  returns (QString)

- readName ()

  returns (QString)

- readPath ()

  returns (QString)

- readType ()

  returns (QString)

- readURL ()

  returns (QString)

- resource ()

  returns (QString)

- setActionGroup (group)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  group | QString |

- sortOrder ()

  returns (QStringList)

- tryExec ()

  returns (bool)