Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 14/11/2023, à 16: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/user

cré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.target

remplacez /home/gg par votre /home/$USER

on le lance

systemctl --user start captvty

on l'arrête

systemctl --user stop captvty

on le valide

systemctl --user enable captvty

Archlinux sur Xiaomi Air 13

Hors ligne

#2 Le 24/11/2023, à 16: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.target

la prise en compte de la modification

systemctl --user daemon-reload

Archlinux sur Xiaomi Air 13

Hors ligne