Personal Application Launchers

Personal Application Launchers

Revision for “Personal Application Launchers” created on November 9, 2020 @ 15:52:12

Title
Personal Application Launchers
Content
<h4>Personal Application Launchers</h4> <em>Application launchers</em> are central to the Moksha window management system. The control, among other things, which menu (if any) lists an application, and how that application is to be run. Application launchers are also called 'desktop configuration files', and they have the extension <em>.desktop</em>. You can see these files at <code>/usr/share/applications</code>. <em>Personal application launchers</em> are .desktop files that you create yourself. These are not stored in the above folder but in your Home directory at <em>.local/share/applications.</em> (Folders beginning with a '<code>.</code>' are hidden folders; to see them, open your file manager and press Ctrl+H.) <h4>Example 1: Disabling the touchpad at startup</h4> Suppose you normally use your laptop computer with a mouse, and you wish to disable the touchpad. One way is to create a personal application launcher which runs the TouchPadOff command, and then to add that launcher to your list of startup applications. Here are the steps in detail: 1.  Open the Personal Application Launcher dialog box <em>(Main menu &gt; Settings &gt; Settings Panel &gt; Apps &gt; Personal Application Launchers)</em>. 2.  Click Add, and the Desktop Entry Editor opens. Make the entries shown in the screenshot below, i.e. enter a suitable name (e.g. <em>Touchpad Off</em>), and, in the Application field, the command which turns off the touchpad: <code>synclient TouchPadOff=1</code><em> </em>(Type in the command exactly as shown, or copy-and-paste it.) <a href="https://www.bodhilinux.com/trial/wp-content/uploads/2020/11/DesktopEntryEditor-620x97.png"><img class="size-medium wp-image-3457 aligncenter" src="https://www.bodhilinux.com/trial/wp-content/uploads/2020/11/DesktopEntryEditor-620x97.png" alt="Desktop Entry Editor" width="620" height="97" /></a> <p style="text-align: left;">3.  Click on the General tab and in the Categories field enter <em>Settings</em>. (This will add your launcher to <em>Applications &gt; Preferences</em>.)</p> <p style="text-align: left;">4.  There is no need to change anything in the Options section (i.e. leave the first time items unticked but <em>Show in Menus</em> ticked).</p> <p style="text-align: left;">5.  Click Apply, and your personal application launcher will be saved in the <code>.local/share/applications</code> folder.</p> <p style="text-align: left;">6.  Now check that your application works: go to <em>Main menu &gt; Applications &gt; Preferences</em>, click on its entry, and try the touchpad.</p> <p style="text-align: left;">7.  If this test is successful, you can close the dialog box, otherwise, correct your entries as necessary.</p> <p style="text-align: left;">8.  To add this application to your Startup Applications, go to the <em>Main menu &gt; Settings &gt; All &gt; Apps &gt; Startup Applications</em>. At the Startup Applications dialog box, click on the Applications tab, scroll down the list applications and highlight yours, click Add, then click OK.</p> <p style="text-align: left;">(To turn the touchpad on again, press Alt+Esc to Run Everything, and enter the command <code>synclient TouchPadOff=0</code>)</p> <h4 style="text-align: left;">Example 2: Launching an Installed App</h4> see: <a href="https://www.bodhilinux.com/w/enlightenment-basics/#Create_Desktop_Icon_8211_For_an_Installed_App"><span id="Create_Desktop_Icon_8211_For_a_Folder">Create Desktop Icon – For an Installed App</span></a> <h4 style="text-align: left;">Example 3: Launching PCManFM (to open a folder)</h4> see: <a href="https://www.bodhilinux.com/w/enlightenment-basics/#Create_Desktop_Icon_8211_For_a_Folder"><span id="Create_Desktop_Icon_8211_For_a_Folder">Create Desktop Icon – For a Folder</span></a> <h4 style="text-align: left;">Example 4: Launching Conky</h4> For details see: <a href="https://www.bodhilinux.com/w/enlightenment-basics/#Create_Desktop_Icon_8211_For_an_Installed_App"><span id="Create_Desktop_Icon_8211_For_a_Folder">Create Desktop Icon – For an Installed App</span></a>, substituting Name with Conky and Application with /usr/bin/conky. In summary, open the Desktop Entry Editor (Main Menu &gt; Settings &gt; Settings Panel. Maximise the Settings window, then select  Apps &gt; Personal Application Launchers.  From there click Add and enter the details below and click <em>Apply</em> then <em>Close</em>: <ul> <li>Name: Conky System Monitor</li> <li>Application: /usr/bin/conky</li> </ul> The above will have created a new Application under Main Menu &gt; Applications &gt; Other &gt; Conky System Monitor <h4>Application launcher arguments</h4> If you examine the application launchers at <code>/usr/share/applications</code> (by opening them in a text editor such as <em>Leafpad</em>), you will see that many applications are launched with an argument, often %U or %f. These two arguments control the number of files that can be passed to the application - one, in the case of %f, multiple files in the case of %U. Thus if you examine the Desktop Entry Editor for <em>Leafpad</em>, you will see that it is launched with the %f argument, whereas <em>Leafpad</em>, which has tabs and can therefore handle multiple files, is launched with the command <em>Leafpad %U. </em> For more information on these and other arguments see <a href="https://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html">https://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html</a>.
Excerpt


OldNewDate CreatedAuthorActions
November 9, 2020 @ 15:52:12 FidoeDidoe
November 9, 2020 @ 15:39:40 FidoeDidoe
November 9, 2020 @ 13:51:54 FidoeDidoe
November 8, 2020 @ 19:28:03 FidoeDidoe
November 8, 2020 @ 12:18:29 FidoeDidoe
November 6, 2020 @ 13:27:33 FidoeDidoe
November 6, 2020 @ 13:26:49 [Autosave] FidoeDidoe
November 5, 2020 @ 11:58:52 FidoeDidoe
November 4, 2020 @ 08:23:15 FidoeDidoe
November 3, 2020 @ 11:16:02 FidoeDidoe
November 3, 2020 @ 11:15:27 FidoeDidoe
October 26, 2020 @ 16:22:01 FidoeDidoe
February 11, 2017 @ 04:06:56 FidoeDidoe
February 26, 2015 @ 06:29:27 JollyRoger
February 26, 2015 @ 06:28:52 [Autosave] JollyRoger
February 25, 2015 @ 16:20:58 JollyRoger
February 25, 2015 @ 14:52:31 JollyRoger
February 25, 2015 @ 13:49:55 JollyRoger
February 25, 2015 @ 11:47:34 JollyRoger
February 24, 2015 @ 14:52:47 JollyRoger