Plasma/DesktopScripting

From KDE Community Wiki
Revision as of 18:26, 22 November 2010 by Aseigo (talk | contribs) (Created page with 'This page records currently outstanding TODOs for the Plasma Desktop Scripting support. Please feel free to tackle any of the items below at your convenience. == Application Que...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page records currently outstanding TODOs for the Plasma Desktop Scripting support. Please feel free to tackle any of the items below at your convenience.

Application Querying

  • Boolean applicationExists(String name): searches $PATH first, then application storage name (aka the .desktop file name), then Name= entries for apps with installed .desktop files, then GenericName= entries for same
  • String defaultApplication(String kind): returns the desktop entry or the executable if none exists of the default app, if any (e.g. terminal, web browser, email, etc)

Rejected Pending Use Case

  • Array[String] matchingApplications(String name, String category, Array[String] keywords)

Path Queries

  • String defaultPath(String name): returns the default path for pictures, movies, documents, etc.