Radek Sprta (Posts about autostart)https://radeksprta.eu/categories/autostart.atom2024-01-07T02:28:57ZRadek SprtaNikolaAutostart Linux Applications in One Commandhttps://radeksprta.eu/posts/autostart-linux-applications-one-command/2016-11-18T23:03:23+01:002016-11-18T23:03:23+01:00Radek Sprta<p>Usually, when I am done working on the computer, I just suspend it. Thanks to
that, I can easily pick up where I left off. But sometimes, I have to swallow
the pill and turn it off (for example to preserve charge while traveling). In
such cases, you can autostart Linux apps to quickly setup your work
environment and get back to being productive. Fortunately, you can easily set
this up in desktop environments adhering to
<a href="https://www.freedesktop.org/wiki/">Freedesktop</a> standards. These include
Gnome and KDE, among others. You just need to copy the .desktop files of your
favorite programs from <code>/usr/share/applications/</code> to the autostart directory.
For instance your browser, password manager or a <a href="https://github.com/Guake/guake">roll-down
terminal</a>. If you only want it to start for
yourself, copy it to <code>$HOME/.config/autostart</code>. However, for system-wide
configuration, the directory is <code>/etc/xdg/autostart</code>. As a result, you don't
have to waste time starting up the same 5 applications every time you reboot.
And you can set everything up using just command line. So you can even use it
is part of your computer installation script. If you are looking for other
ways to automize tedious tasks, check out this <a href="https://radeksprta.eu/automatically-setup-computer-ansible-playbook/">guide to automatically
configure your computer with Ansible</a>.</p>