Ubuntu running .desktop application on boot

Occasionally you will need to run an application on boot. This could be a script or a full blown application. Root access or not, it does not matter.

We will be using the same .desktop app we made in this post. The goal is to have it run on boot when the user logs into the desktop gui rather than having to click the desktop icon.

Navigate to the  ~/.config/autostart folder, ( if this does not exist, you can create one using mkdir autostart )

Now we can copy our .desktop file we created in the earlier post into this directory and it should boot on load. Many of the options we added are redundant and don’t actually need to be added. In my situation I have my .desktop image inside my project folder ( ~/Development/my-project/start.desktop. I created a symbolic link to the autostart folder.

$ ln -s ~/Development/my-project/start.desktop ~/.config/autostart

Once we have the file in the autostart folder and/or the desktop, it should run whenever you reboot.

Jon

Innovative, entrepreneurial and positively unsatisfied mind that constantly pushes the tech boundaries to create new solutions and devices that change people’s lives. Throughout my career, I have had the opportunity of having a multi-disciplinary experience, which led me to wear the hats of: Architect, IoT Consultant (Internet of Things Consultant), Developer, Designer, Engineer, Server Admin, Consultant and Project Manager – to name a few. Based on this diversified background, I get projects done by following smart ideas and well-planned goals. In a world which is getting more unconventional by the day, I use unconventional ways, and a very healthy dose of integrity, to create devices and solutions that help companies go from a steady present to a dynamic future.

You may also like...