<http://schema.org/articleBody>
"&amp;lt;p&amp;gt;\u00A0&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;Introduction&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;In this guide you will be shown how to launch applications when &amp;lt;a href=&amp;quot;http://www.everydaylinuxuser.com/2016/05/an-everyday-linux-user-review-of-ubuntu.html&amp;quot; data-component=&amp;quot;link&amp;quot; data-source=&amp;quot;inlineLink&amp;quot; data-type=&amp;quot;externalLink&amp;quot; data-ordinal=&amp;quot;1&amp;quot; rel=&amp;quot;nofollow&amp;quot;&amp;gt;Ubuntu&amp;lt;/a&amp;gt; starts.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;You will be pleased to know that you don&amp;amp;#39;t need the terminal at all to be able to do this as there is a fairly straight forward graphical tool to help you on your way.&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;Startup Application Preferences&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;The tool used to get applications to start when Ubuntu loads is called &amp;amp;#34;Startup Application Preferences&amp;amp;#34;. Press the super key (Windows key) on the keyboard to bring up &amp;lt;a href=&amp;quot;https://www.lifewire.com/complete-guide-ubuntu-unity-dash-2202066&amp;quot; data-component=&amp;quot;link&amp;quot; data-source=&amp;quot;inlineLink&amp;quot; data-type=&amp;quot;internalLink&amp;quot; data-ordinal=&amp;quot;2&amp;quot;&amp;gt;the Ubuntu Dash&amp;lt;/a&amp;gt; and search for &amp;amp;#34;Startup&amp;amp;#34;.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;It is likely that two options will present themselves to you. One will be for the &amp;amp;#34;Startup Disk Creator&amp;amp;#34; which is a guide for another day and the other is &amp;amp;#34;Startup Applications&amp;amp;#34;.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Click on the &amp;amp;#34;Startup Applications&amp;amp;#34; icon. A screen will appear like the one in the image above.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;There will already be some items listed as &amp;amp;#34;Startup Applications&amp;amp;#34; and I recommend that you leave these alone.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;As you can see the interface is fairly straight forward. There are just three options:&amp;lt;/p&amp;gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;Add&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Remove&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Edit&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&amp;lt;h3&amp;gt;Add A Program As A Startup Application&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;To add a program at startup click the &amp;amp;#34;Add&amp;amp;#34; button.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;A new window will appear with three fields:&amp;lt;/p&amp;gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;Name&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Command&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;Comment&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&amp;lt;p&amp;gt;Enter the name of something that you will recognise in the &amp;amp;#34;Name&amp;amp;#34; field. For instance if you want &amp;amp;#34;&amp;lt;a href=&amp;quot;https://www.lifewire.com/complete-guide-rhythmbox-2204885&amp;quot; data-component=&amp;quot;link&amp;quot; data-source=&amp;quot;inlineLink&amp;quot; data-type=&amp;quot;internalLink&amp;quot; data-ordinal=&amp;quot;3&amp;quot;&amp;gt;Rhythmbox&amp;lt;/a&amp;gt;&amp;amp;#34; to run at startup type &amp;amp;#34;Rhythmbox&amp;amp;#34; or &amp;amp;#34;Audio Player&amp;amp;#34;.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;In the &amp;amp;#34;Comment&amp;amp;#34; field give a good description of what is to be loaded.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;I deliberately left the &amp;amp;#34;Command&amp;amp;#34; field until last as it is the most involved part of the process. The &amp;amp;#34;Command&amp;amp;#34; is the physical command you wish to run and it can be a program name or the name of the script.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;For example to get &amp;amp;#34;Rhythmbox&amp;amp;#34; to run at startup all you have to do is type &amp;amp;#34;Rhythmbox&amp;amp;#34;.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;If you don&amp;amp;#39;t know the correct name of the program you need to run or you don&amp;amp;#39;t know the path click the &amp;amp;#34;Browse&amp;amp;#34; button and look for it.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;When you have entered all the details click &amp;amp;#34;OK&amp;amp;#34; and it will be added to the startup list.&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;How To Find The Command For An Application&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;Adding Rhythmbox as an application at startup was quite easy because it is the same as the name of the program.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;If you want something like Chrome to run at startup then entering &amp;amp;#34;Chrome&amp;amp;#34; as the command will not work.\u00A0&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The &amp;amp;#34;Browse&amp;amp;#34; button isn&amp;amp;#39;t particularly very useful on its own because unless you know where the programs are installed it is hard to find them.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;As a quick tip most applications are installed in one of the following locations:&amp;lt;/p&amp;gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;/usr/bin&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;/usr/sbin&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;/usr/local/bin&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;/usr/local/sbin&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&amp;lt;p&amp;gt;If you know the name of the program you wish to run you can open a command prompt by pressing CTRL, ALT and T and entering the following command:&amp;lt;/p&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;which google-chrome&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;p&amp;gt;This will return the path to the application. For example the above command will return the following:&amp;lt;/p&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;/usr/bin/google-chrome&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;p&amp;gt;It won&amp;amp;#39;t be immediately obvious to everyone however that to run Chrome you have to use google-chrome.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;An easier way to find out how a command is run is to physically open the application by selecting it from the Dash.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Simply press the super key and search for the application you wish to load at startup and click the icon for that application.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Now open a terminal window and type the following:&amp;lt;/p&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;p&amp;gt;top -c&amp;lt;/p&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;p&amp;gt;Click here for a video showing more about the top command.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;A list of the running applications will be displayed and you should recognise the application you are running.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The best thing about doing it this way is that it provides a list of switches that you might wish to include as well.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Copy the path from the command and paste it into the &amp;amp;#34;Command&amp;amp;#34; field on the &amp;amp;#34;Startup Applications&amp;amp;#34; screen.&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;Writing Scripts To Run Commands&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;In some cases it isn&amp;amp;#39;t a good idea to run the command at startup but to run a script which runs the command.\u00A0&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;A good example of this is the Conky application which displays system information on your screen.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;In this case you won&amp;amp;#39;t want Conky to load until the display has fully loaded and so a sleep command prevents Conky starting too soon.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;https://www.lifewire.com/beginners-guide-to-conky-4043352&amp;quot; data-component=&amp;quot;link&amp;quot; data-source=&amp;quot;inlineLink&amp;quot; data-type=&amp;quot;internalLink&amp;quot; data-ordinal=&amp;quot;4&amp;quot;&amp;gt;Click here for a full guide to Conky and how to write a script to run as a command.&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;Editing Commands&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;If you need to tweak a command because it doesn&amp;amp;#39;t run properly, click on the &amp;amp;#34;Edit&amp;amp;#34; button on the &amp;amp;#34;Startup Applications Preferences&amp;amp;#34; screen.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The screen that appears is the same as the one for the add new startup application screen.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The name, command and comment fields will already be populated.\u00A0&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Amend the details as required and then press OK.&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;Prevent Applications Running At Startup&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;To remove an application which is set to run at startup, select the line within the &amp;amp;#34;Startup Application Preferences&amp;amp;#34; screen and click the &amp;amp;#34;Remove&amp;amp;#34; button.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;As mentioned before it is not a good idea to get rid of the default items that weren&amp;amp;#39;t added by you.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;\u00A0&amp;lt;/p&amp;gt;"^^<http://www.w3.org/2001/XMLSchema#string>
<https://www.lifewire.com/run-a-program-startup-using-ubuntu-2205696>