this post was submitted on 31 Jul 2023
24 points (100.0% liked)
General Programming Discussion
7814 readers
10 users here now
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Its odd because i dont know what im doing, i sudo everything lol. So, i also tried what @dragnucs@lemmy.ml said. Changed the shellscript.service to use commands instead of a script and then checking status in terminal after a restart.
With xrandr it failed with "cant open display" which is what youre talking about. Is what youre saying is that i cant run xrandr before login?
With barrier it failed because "The Barrier GUI requires a display". So, same thing, it cant be done before login??
Yes and yes
Well damn. There goes my hopes and dreams. Thanks for your help.
You can set your service to start after the graphical session starts by adding this line to the [unit] section:
You can also add a require with same target.
If you still need a value for an environment variable, you can set it with "Environment=".
Also as others said, you don't nedd sudo. Systems should manage all of that. Starting, stopping, reload, environment, dependencies and user context.