<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://techbase.kde.org/skins/common/feed.css?0.2"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://techbase.kde.org/index.php?title=Development/Tutorials/Plasma/JavaScript/API-LaunchApp&amp;feed=atom&amp;action=history</id>
		<title>Development/Tutorials/Plasma/JavaScript/API-LaunchApp - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://techbase.kde.org/index.php?title=Development/Tutorials/Plasma/JavaScript/API-LaunchApp&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=Development/Tutorials/Plasma/JavaScript/API-LaunchApp&amp;action=history"/>
		<updated>2013-05-26T06:43:13Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://techbase.kde.org/index.php?title=Development/Tutorials/Plasma/JavaScript/API-LaunchApp&amp;diff=67346&amp;oldid=prev</id>
		<title>Rishabhsrao1: Added an example for the runCommand method</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=Development/Tutorials/Plasma/JavaScript/API-LaunchApp&amp;diff=67346&amp;oldid=prev"/>
				<updated>2011-11-13T14:02:19Z</updated>
		
		<summary type="html">&lt;p&gt;Added an example for the runCommand method&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:02, 13 November 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''bool'' '''runApplication(string application[, array files])''' &amp;lt;br&amp;gt;Runs an application by name (can reference an installed .desktop file as well as an executable in the user's $PATH) with an optional array of files. The file array may contain either Urls or strings. Returns true on success, false on failure.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''bool'' '''runApplication(string application[, array files])''' &amp;lt;br&amp;gt;Runs an application by name (can reference an installed .desktop file as well as an executable in the user's $PATH) with an optional array of files. The file array may contain either Urls or strings. Returns true on success, false on failure.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''bool'' '''runCommand(string exe[, array args])''' &amp;lt;br&amp;gt;Runs the executable with the given arguments. Returns true on success, false on failure.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''bool'' '''runCommand(string exe[, array args])''' &amp;lt;br&amp;gt;Runs the executable with the given arguments. Returns true on success, false on failure. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;For example:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;plasmoid.runCommand(&amp;quot;xmessage&amp;quot;, [&amp;quot;hi&amp;quot;]); // is same as running &amp;quot;xmessage hi&amp;quot; on the terminal&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''bool'' '''openUrl([string|Url] url)''': &amp;lt;br&amp;gt;Opens the url in the default application (or asks the user if there is no default application for the file). The url parameter may be either a string or a Url. Returns true on success, false on failure.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''bool'' '''openUrl([string|Url] url)''': &amp;lt;br&amp;gt;Opens the url in the default application (or asks the user if there is no default application for the file). The url parameter may be either a string or a Url. Returns true on success, false on failure.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''boolean'' '''applicationExists(String name)''': (scripting version &amp;gt;= 4) searches $PATH first, then tries in the application menu system by application storage name (aka the .desktop file name), then Name= entries for apps with installed .desktop files, then GenericName= entries for same&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''boolean'' '''applicationExists(String name)''': (scripting version &amp;gt;= 4) searches $PATH first, then tries in the application menu system by application storage name (aka the .desktop file name), then Name= entries for apps with installed .desktop files, then GenericName= entries for same&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''mixed'' '''defaultApplication(String kind [, boolean storageId = false])''': (scripting version &amp;gt;= 4) returns the executable (or if storageId is true, then the app menu system id, e.g. its .desktop file name) of the default app. The &amp;quot;kind&amp;quot; parameter may be a well-known application type including &amp;quot;browser&amp;quot;, &amp;quot;mailer&amp;quot;, &amp;quot;filemanager&amp;quot;, &amp;quot;terminal&amp;quot;, &amp;quot;imClient&amp;quot; and &amp;quot;windowmanager&amp;quot; (or any other entry in share/apps/kcm_componentchooser/kcm_*.desktop); it may also be a mimetype (e.g. &amp;quot;application/pdf&amp;quot;). On failure, it returns false.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''mixed'' '''defaultApplication(String kind [, boolean storageId = false])''': (scripting version &amp;gt;= 4) returns the executable (or if storageId is true, then the app menu system id, e.g. its .desktop file name) of the default app. The &amp;quot;kind&amp;quot; parameter may be a well-known application type including &amp;quot;browser&amp;quot;, &amp;quot;mailer&amp;quot;, &amp;quot;filemanager&amp;quot;, &amp;quot;terminal&amp;quot;, &amp;quot;imClient&amp;quot; and &amp;quot;windowmanager&amp;quot; (or any other entry in share/apps/kcm_componentchooser/kcm_*.desktop); it may also be a mimetype (e.g. &amp;quot;application/pdf&amp;quot;). On failure, it returns false.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''String'' '''applicationPath(String name)''':&amp;#160; (scripting version &amp;gt;= 4) returns the full local path to a given application or .desktop file if it exists.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* ''String'' '''applicationPath(String name)''':&amp;#160; (scripting version &amp;gt;= 4) returns the full local path to a given application or .desktop file if it exists.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rishabhsrao1</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/index.php?title=Development/Tutorials/Plasma/JavaScript/API-LaunchApp&amp;diff=59219&amp;oldid=prev</id>
		<title>Aseigo: Created page with '= LaunchApp =  This Extension adds methods to the global plasmoid object that allow launching applications, running commands and opening files and urls.  * ...'</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=Development/Tutorials/Plasma/JavaScript/API-LaunchApp&amp;diff=59219&amp;oldid=prev"/>
				<updated>2011-06-24T12:24:10Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;= LaunchApp =  This [[../API-Extensions|Extension]] adds methods to the global plasmoid object that allow launching applications, running commands and opening files and urls.  * ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LaunchApp =&lt;br /&gt;
&lt;br /&gt;
This [[../API-Extensions|Extension]] adds methods to the global plasmoid object that allow launching applications, running commands and opening files and urls.&lt;br /&gt;
&lt;br /&gt;
* ''bool'' '''runApplication(string application[, array files])''' &amp;lt;br&amp;gt;Runs an application by name (can reference an installed .desktop file as well as an executable in the user's $PATH) with an optional array of files. The file array may contain either Urls or strings. Returns true on success, false on failure.&lt;br /&gt;
* ''bool'' '''runCommand(string exe[, array args])''' &amp;lt;br&amp;gt;Runs the executable with the given arguments. Returns true on success, false on failure.&lt;br /&gt;
* ''bool'' '''openUrl([string|Url] url)''': &amp;lt;br&amp;gt;Opens the url in the default application (or asks the user if there is no default application for the file). The url parameter may be either a string or a Url. Returns true on success, false on failure.&lt;br /&gt;
* ''boolean'' '''applicationExists(String name)''': (scripting version &amp;gt;= 4) searches $PATH first, then tries in the application menu system by application storage name (aka the .desktop file name), then Name= entries for apps with installed .desktop files, then GenericName= entries for same&lt;br /&gt;
* ''mixed'' '''defaultApplication(String kind [, boolean storageId = false])''': (scripting version &amp;gt;= 4) returns the executable (or if storageId is true, then the app menu system id, e.g. its .desktop file name) of the default app. The &amp;quot;kind&amp;quot; parameter may be a well-known application type including &amp;quot;browser&amp;quot;, &amp;quot;mailer&amp;quot;, &amp;quot;filemanager&amp;quot;, &amp;quot;terminal&amp;quot;, &amp;quot;imClient&amp;quot; and &amp;quot;windowmanager&amp;quot; (or any other entry in share/apps/kcm_componentchooser/kcm_*.desktop); it may also be a mimetype (e.g. &amp;quot;application/pdf&amp;quot;). On failure, it returns false.&lt;br /&gt;
* ''String'' '''applicationPath(String name)''':  (scripting version &amp;gt;= 4) returns the full local path to a given application or .desktop file if it exists.&lt;/div&gt;</summary>
		<author><name>Aseigo</name></author>	</entry>

	</feed>