#1 Le 14/11/2023, à 15:06
- k3c
lancer Captvty au boot via un service systemd
Bonjour
j'ai fait ce qui suit
création des répertoires
mkdir ~/.local/share/systemd
mkdir ~/.local/share/systemd/usercréation du fichier ~/.local/share/systemd/user/captvty.service
[Unit]
Description=Run Captvty - Wine application
[Service]
Type=forking
Environment="WINEPREFIX=/home/gg/.wine_captvty"
ExecStart=/usr/bin/wine "/home/gg/.captvty/Captvty.exe"
ExecStop=/usr/bin/wineserver -k
[Install]
WantedBy=graphical-session.targetremplacez /home/gg par votre /home/$USER
on le lance
systemctl --user start captvtyon l'arrête
systemctl --user stop captvtyon le valide
systemctl --user enable captvtyDebian 12 sur Thinkpad reconditionné
Hors ligne
#2 Le 24/11/2023, à 15:16
- k3c
Re : lancer Captvty au boot via un service systemd
en fait il y a un timeout par défaut très court de systemd, qui fait que le programme sort
pour ne pas être dérangé, modifier comme suit le fichier
~/.local/share/systemd/user/captvty.service
[Unit]
Description=Run Captvty - Wine application
[Service]
Type=forking
Environment="WINEPREFIX=/home/gg/.wine_captvty_V3"
ExecStart=/usr/bin/wine "/home/gg/.captvty_V3/Captvty.exe"
ExecStop=/usr/bin/wineserver -k
TimeoutSec=86400
[Install]
WantedBy=graphical-session.targetla prise en compte de la modification
systemctl --user daemon-reloadDebian 12 sur Thinkpad reconditionné
Hors ligne