Bonjour à tous.
J'ai un Ubuntu Desktop 18.04. Mon utilisateur se connecte automatiquement.
Je souhaiterais lancer automatiquement VLC via "systemd" au démarrage de la session.
J'ai donc créé un service appelé TV.service, je l'ai activé mais lorsque j'exécute la commande status voici ce que j'obtiens :
Je n'ai trouvé aucune solution pour remédier au problème.Code:
1
2
3
4
5
6
7 août 26 11:45:06 W-TV-STREAM systemd[1]: Started VLC TV. août 26 11:45:08 W-TV-STREAM tvdz.sh[810]: VLC is not supposed to be run as root. Sorry. août 26 11:45:08 W-TV-STREAM tvdz.sh[810]: If you need to use real-time priorities and/or privileged août 26 11:45:08 W-TV-STREAM tvdz.sh[810]: you can use /usr/bin/vlc-wrapper (make sure it is Set-UID août 26 11:45:08 W-TV-STREAM tvdz.sh[810]: cannot be run by non-trusted users first). août 26 11:45:08 W-TV-STREAM systemd[1]: tv.service: Main process exited, code=exited, status=1/FA août 26 11:45:08 W-TV-STREAM systemd[1]: tv.service: Failed with result 'exit-code'.
Mon souhait c'est que VLC démarre automatiquement au lancement de la session de l'utilisateur.
Voici mon fichier TV.service :
Merci d'avance pour votre aide.Code:
1
2
3
4
5
6
7
8
9
10 [Unit] Description=VLC TV [Service] Type=simple ExecStart=/usr/local/sbin/tv.sh Restart=on-abort [Install] WantedBy=multi-user.target