openDsh / dash

Join us on Slack! https://join.slack.com/t/opendsh/shared_invite/zt-la398uly-a6eMH5ttEQhbtE6asVKx4Q
GNU General Public License v3.0
238 stars 69 forks source link

Dont know how to enable autostart #144

Open FilipDavid1 opened 1 year ago

FilipDavid1 commented 1 year ago

Issue

Make sure you are running the latest version before reporting an issue.

Hardware

Device Connection Method Screen Mobile Device Android Auto Version
Raspberry Pi 4 8GB USB Cable - Xiaomi redmi note 10 v.1.EXAMPLE

Installation Method: Install.sh or Image

Description of problem:

please could you give me tutorial how to enable autostart for opendash

Problem

Expected Result:

Result

Problem-relevant steps to reproduce:

Traceback (if applicable):

Additional info:

Additional Info

matou78 commented 11 months ago

hello , the instructions are on slack but i will give you the file to create in case you still need it or someone else is looking for I used the raspberry os 32bit

open the file manager in admin sudo pcmanfm

Inside of /etc/systemd/system/ create a file called dash.service

Open the file created with a text editor and put this in but change the access paths and user [Unit]

Description=Dash
After=bluetooth.target

[Service]
Type=idle
User=pi
StandardOutput=inherit
StandardError=inherit
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/pi/.Xauthority
Environment=XDG_RUNTIME_DIR=/run/user/1000
WorkingDirectory=/home/pi/dash/
ExecStart=/home/pi/dash/bin/dash
Restart=on-failure
RestartSec=10s
KillMode=process
TimeoutSec=infinity

[Install]
WantedBy=graphical.target

Reload services with systemctl daemon-reload then activate the service with systemctl enable dash.service

Restart and it should start dash after you see the desktop

Have fun ;)