Autostart in Linux Mint
Autostart in Linux Mint
Autostart in Linux Mint
You're viewing a single thread.
I've found out the hard way: Running the script during startup, and running it using the proper user authorization, are two different things.
And environment --- DISPLAY
and PATH
in particular.
Youâre right and Iâm dumb. I forgot to absolute-ify one of the paths, which caused the script to be dependent on my user environment, which isnât loaded by the desktop file.
Knowing that the environment is finicky, I made sure to only use absolute paths to all files and executables.
But thanks for the hint.
What are you using as a Desktop Environment? Certain with DEs the Autostart programs need to be added in the config file.
Cinnamon.
Which config file?
According to the Arch Wiki you need to place the .desktop file in:
undefined
~/.config/autostart/*****.desktop
You also need to add the following line to the .desktop file:
undefined
X-GNOME-Autostart-enabled=true
But that's probably the hard way to do it, I think the settings panel should also have a Startup Application tab.
Thanks for looking that up. Thatâs where my desktop file is located. And it has the X-GNOME-Autostart-enabled=true
line. The settings panel does have a Startup Application tab, and thatâs what I used. It created the .desktop file in the appropriate location.
surprised_pikachu_face.jpeg
Check your journald and/or make your script log it's actions.
undefined
Script > ~/script.log
Thank for your help. Upon looking at it again I noticed the one filepath that relied on my profile being loaded. Corrected that. Works now.
TrĂŠs stupide