Basic Script Help

I never script. If I writ this in terminal it works. I want it to autostart. I am also not sure how to get the script to work when I just click it let alone the autostart. Opening it with terminal does nothing as well when I close discord. My script is just comping some vesktop code from github. The reason is just a build of vesktop that allows u to change the icon in the system tray which is working out for me. Just to say I have a good personal reason why I want to do it this way XD.
cd /home/marko/Documents/Programs/Vesktop/
pnpm start
cd /home/marko/Documents/Programs/Vesktop/
pnpm start
No description
Solution:
probably best to create it as user service ``` ~/.config/systemd/user/arrpc.service [Unit] Description=arRPC Service...
Jump to solution
9 Replies
Marko
MarkoOP3w ago
Without the script I get the below result and it works. Assuming I just don't know how to script.
No description
Marko
MarkoOP3w ago
How I attempted to autostart things
No description
Solution
asen23
asen233w ago
probably best to create it as user service
# ~/.config/systemd/user/arrpc.service
[Unit]
Description=arRPC Service

[Service]
Type=simple
WorkingDirectory=/home/marko/Documents/Programs/Vesktop
ExecStart=pnpm start
Restart=always
RestartSec=10

[Install]
WantedBy=default.target
# ~/.config/systemd/user/arrpc.service
[Unit]
Description=arRPC Service

[Service]
Type=simple
WorkingDirectory=/home/marko/Documents/Programs/Vesktop
ExecStart=pnpm start
Restart=always
RestartSec=10

[Install]
WantedBy=default.target
change the pnpm to output of which pnpm after creating the file do systemctl --user daemon-reload and systemctl --user enable --now arrpc.service check if it running by systemctl --user status arrpc.service
Marko
MarkoOP3w ago
thank you! Man seemed I oversimplified that one XD. Always wanted to try writing a basic script in linux that was not python XD. OH well one day
Marko
MarkoOP3w ago
What does this bit mean? Sorry it is probably obvious
No description
Marko
MarkoOP3w ago
I just followed the pnpm bit from how github says to launch from terminal basically using the directory you clone from github
No description
Marko
MarkoOP3w ago
I did understand to do this bit but obviously not understanding the output change bit
No description
Marko
MarkoOP3w ago
nm figured it out with ai I think oh yes that is the shit sorted bruh that starts so quick when u login like a flash amazing

Did you find this page helpful?