If you call the wannarun.sh
script directly, does it run? Does it do what it is expected to do?
I’d suggest starting simple, before my initial reply on this thread I did a quick sanity check on the phone to ensure it was functioning as expected.
I created a basic script and minimal .desktop file just to check the autostart feature.
The script was created as /home/purism/as-test.sh
and contained the following…
#!/bin/bash
touch as-test-has-ran
then from the terminal I ensured it was executable…
chmod +x /home/purism/as-test.sh
Then I created the .desktop file as /home/purism/.config/autostart/as.desktop
with the following contents…
[Desktop Entry]
Type=Application
Name=as-test
Path=/home/purism/
Exec=/home/purism/as-test.sh
I did a quick test from the terminal calling the script directly…
/home/purism/as-test.sh
and checked with ls
that the file as-test-has-ran
was created (it was). Then I removed the created file…
rm /home/purism/as-test-has-ran
I rebooted the phone and saw the file as-test-has-ran
had been recreated when I logged in, showing that .desktop files placed in ~/.config/autostart/
are parsed and scripts can be executed.
I’m using full paths here for absolute clarity, you shouldn’t need them other than in the .desktop file.
You can also check the journal log for errors, I think any errors here would essentially get tagged “–user” so it would be worth looking over the logs, they provide clues as to what the issue is at your end.