You are not logged in.

#1 2019-01-23 12:40

sickpig
Member
Registered: 2019-01-08
Posts: 52

systemd autostart script [solved]

Hi

trying to autostart applications via systemd service as my WM does not have any autostart section in it
m using tinywm and miwm
also jwm, it has support for autostart but I want to check if i can autostart using systemd as it would be WM or DE independant

created service in /home/a/.config/systemd/user

my script:

[Unit]
Description=to autostart stuff desktop independant

[Service]
Type=simple
Environment=DISPLAY=:0
Environment="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
ExecStart=/usr/bin/starty

[Install]
WantedBy=default.target

upon running journalctl --user-unit starty.service i get below

- Logs begin at Wed 2019-01-23 22:16:57 AEDT, end at Wed 2019-01-23 22:18:41 AE
Jan 23 22:17:26 a systemd[1323]: Started to autostart stuff desktop independant.

But my applications are not autostarting

appreciate help

thank you

Last edited by sickpig (2019-01-23 21:44)

Offline

#2 2019-01-23 14:58

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: systemd autostart script [solved]

I noticed this exact same post in the Debian forum which is likely more appropriate as this would not appear to now be a Q4OS system.

Offline

#3 2019-01-23 20:38

sickpig
Member
Registered: 2019-01-08
Posts: 52

Re: systemd autostart script [solved]

Hi Dai,

I did post there too considering that Q is based on Deb
anyway they have replied with a workaround
let me check if it works

Offline

#4 2019-01-23 21:34

sickpig
Member
Registered: 2019-01-08
Posts: 52

Re: systemd autostart script [solved]

their suggestion worked like a charm and is applicable for Q4
m using super lightweight WM sawfish with Q4os along with xfce panel
doesnt use any RAM at all!!

not been able to get systemd autostart going but for now my requirement is met
might play with that later

Offline

Board footer

Powered by FluxBB