Plasma/DesktopScripting: Difference between revisions

From KDE Community Wiki
No edit summary
Line 2: Line 2:


== Application Querying ==
== 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
* <s>''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</s>
* ''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)
* <s>''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)</s>


=== Rejected Pending Use Case ===
=== Rejected Pending Use Case ===

Revision as of 01:19, 15 January 2011

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 dataPath(String name): returns the default path for pictures, movies, documents, etc.
  • String applicationPath(String name): returns the full local path to a given application or .desktop file

Wallpapers

  • Array[String] knownWallpaperPlugins: returns a list of all installed wallpaper plugins