Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4794

Troubleshooting • Re: Can Open Browser from Terminal but Not from Systemd Service

$
0
0
Presumably there are some differences in the environment? between systemd and the user command line that allow the later to work.

There are. But those aren't the main problems with your service:
  1. multi-user.target is reached before the desktop has started. If you need the desktop use graphical.target
  2. You don't appear to have specified which desktop to connect to.
  3. A fixed length sleep is a horrible, often ineffective hack. If you're using systemd set the dependencies properly and you won't need the sleep.
The easy solution is to configure your OS for quro login to the desktp then use autostart (under X) or wayfire.ini (wyalanf) to start chromium.

For more and alternatives see Running A Program At Start Up A Beginner's Guide (full disclosure: I wrote that guide)

Statistics: Posted by thagrol — Fri Apr 19, 2024 11:26 pm



Viewing all articles
Browse latest Browse all 4794

Trending Articles