Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont know how to enable autostart #144

Open
FilipDavid1 opened this issue May 19, 2023 · 1 comment
Open

Dont know how to enable autostart #144

FilipDavid1 opened this issue May 19, 2023 · 1 comment

Comments

@FilipDavid1
Copy link

FilipDavid1 commented May 19, 2023

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
Copy link

matou78 commented Jul 24, 2023

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants