This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Scripts in ~/.config/autostart do not get executed

Tags: None
(comma "," separated)
manoca
Registered Member
Posts
2
Karma
0
I have a artix install here with openrc and KDE Plasma as DE. I tried to get autostarts to work, but no luck whatsoever. I've made a simple script to check if it is working:

#!/bin/sh
echo "It works!" > /tmp/asdf

and linked it in the ~/.config/autostart/ directory

ln -sf ~/test.sh ~/.config/autostart

the link is there

[manoca@localhost ~]$ ls ~/.config/autostart/
test.sh

but the script does not execute(as there is no /tmp/asdf after starting up KDE). Why?
manoca
Registered Member
Posts
2
Karma
0
I figured out, that the content of the ~/.config/autostart/ folder needs to have .dekstop entries, not the scripts themself. So I added the following and it seems to work:

[Desktop Entry]
Exec=/home/manoca/startUp.sh
Icon=dialog-scripts
Name=startUp.sh
Path=
Type=Application
X-KDE-AutostartScript=true

Only thing: I had to add a sleep to my script. Otherwise it would work some times(especially when I do not reboot but 'just' log off and on again). Is there a better solution than adding a random sleep?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]