I've got a script file in my home directory that I've added to
Startup Applications. It then creates a
.desktop file in
~/.config/autostart. Is it possible to just cut out the middle man, and run this script directly from the autostart folder?
The structure of the script is along the lines of:
command1 command2 command3
I tried making it one line by rearranging the script to read:
The idea behind this was to swap out the following line in the
.desktop file from this:
This doesn't seem to work. I'm guessing multiple commands aren't supported. Is there any other way?
To be clear, I don't have any particular problem with the current way I'm doing things. Everything functions as it should. I'm just very particular about my home directory contents. If there is a more elegant way to run my script after logging in to the desktop, great. If not, no big deal.
To my understanding, KDE has a ~/.config/autostart-scripts directory that would work perfectly for me. This seems to be a folder found only in KDE however. I'm using the default DE for Ubuntu 18.04.