You are not logged in.
I just want to automatically run this command:
openrgb -p usual (name of the profile)
To try this, I created a .service file in /etc/systemd/system, which looks like this:
https://drive.google.com/drive/folders/ … sp=sharing
The Exec file is located in /usr/bin and looks like this:
https://drive.google.com/drive/folders/ … sp=sharing
Did I do something wrong, because It doesn't work.
Thanks in advance
Offline
Did I do something wrong, because It doesn't work.
Thanks in advance
I have learned that the first stop in diagnosis is a look at the Arch wiki. It can be a slog because it presents a comprehensive analysis and tries to touch all the nuances of every little case. Worth the effort though.
For you with this issue I suggest you have a look here
https://wiki.archlinux.org/title/System … d_services
Good luck.
Last edited by buzzwallard (2021-06-21 12:57:34)
Offline
Please post the contents of the relevant files directly onto the forums. Most people here won't follow links to download random files.
The first obvious mistake is that the service file is in the wrong location...
https://wiki.archlinux.org/title/System … asic_setup
Last edited by Slithery (2021-06-21 13:02:34)
Offline
A systemd service does not inherit your environment.
So depending on where that profile is stored, it could be not found.
Also you can call openrgb directly in the service file, so your script not strictly needed.
See the openrgb wiki for an example.
As a side note:
your script is missing a shebang line. I don't know how a missing one is handled (I'd assume default to /bin/sh or user shell).
Offline