et dites pourquoi même en installation flash, le lecteur embarqué de la version 3 nous fait un bel écran blanc ? et vlc ne marche que sur certaines chaines et pas toutes, comme france télévision ?
avec winehq-staging la lecture en direct de france tv marche bien avec vlc. je regarde comment finaliser le script et je vais le poster ici.
Mais pas le schaine du groupe M6
Une tentative d'installation donne ceci
francois@francois-MS-7091:~/Bureau/Captvty$ bash script_install_captvty_v3
---------
script_install_captvty_v3: ligne 71: /home/francois/.local/share/applications/Captvty_V3.desktop: Aucun fichier ou dossier de ce type
francois@francois-MS-7091:~/Bureau/Captvty$ 
Je peux poster la totalité si nécessaire.
Merci.
gazimel a écritUne tentative d'installation donne ceci
francois@francois-MS-7091:~/Bureau/Captvty$ bash script_install_captvty_v3
---------
script_install_captvty_v3: ligne 71: /home/francois/.local/share/applications/Captvty_V3.desktop: Aucun fichier ou dossier de ce type
francois@francois-MS-7091:~/Bureau/Captvty$ 
Je peux poster la totalité si nécessaire.
Merci.
Oui tu n'as pas de dossier ~.local/share/applications ? c'est possible de me dire à partir de chemin le dossier n'existe pas ?

@gazimel : Regarde juste en dessous j'ai modifié le script pour que ton problème soit résolu
Voici le script pour la version 3 de Captvty :
ATTENTION, par défaut le script installe WineHQ-Staging (pour un meilleur fonctionnement), qui nécessite l'ajout d'un dépot tiers.
Quand la fenêtre le demande il faut choisir Windows 7 comme version de Windows.
#!/bin/bash

#Installation des paquets nécessaires
zenity --question \
--title "Choix de la version de wine" \
--text "Voulez-vous utiliser la version hq qui nécessite l'ajout d'un dépôt tiers (meilleurs performance) ou la version des dépots d'Ubuntu (problème pour voir la tv en direct) ?"

if [ $? = 0 ]
then
    sudo dpkg --add-architecture i386 
    wget -nc https://dl.winehq.org/wine-builds/winehq.key
    sudo apt-key add winehq.key
    sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
    sudo apt install -y winehq-staging wine-staging winetricks
else
    sudo dpkg --add-architecture i386
    sudo apt install -y wine32 wine-stable winetricks
fi

#Création du prefix wine pour Captvty
export WINEPREFIX="$HOME/.wine_captvty_V3"
export WINEARCH=win32
winecfg
#Choisir Windows 7

#Ajout sur le prefix des éléments nécessaires à Captvty
winetricks -q --unattended dotnet45 corefonts comctl32 msls31 gdiplus vcrun2010 ie8 fontsmooth-rgb vlc flash

#Remise à zéro du dossier où est contenu les fichiers du logiciel (en cas de mise à jour)
test -d "$HOME/.captvty_V3" && rm -rf "$HOME/.captvty_V3"
#(Re-)Création du dossier pour le logiciel
mkdir "$HOME/.captvty_V3"

#Récupération du programme proprement dit
wget -q -O- http://v3.captvty.fr/ | egrep -o '\/\/.+?\.zip' | sed 's/\/\//http:\/\//' | xargs wget -O /tmp/Captvty_V3.zip && \
ls -alrt /tmp/Cap*zip && unzip -d  "$HOME/.captvty_V3/" /tmp/Captvty_V3.zip && rm /tmp/Captvty_V3.zip

#Récupération de l'icône
test ! -d "$HOME/.icons" && mkdir "$HOME/.icons"
wget "https://framagit.org/Paullux/captvty-script-installateur-pour-ubuntu/raw/master/captvty-logo.png" -O "$HOME/.icons/captvty-logo.png"

#Création des préférences de Captvty
(cat << FIN
<?xml version="1.0" encoding="utf-8"?>
<settings>
  <maxRateFactor>5</maxRateFactor>
  <playerPaths>C:/Program Files/VideoLAN/VLC/vlc.exe</playerPaths>
  <maxRateEnabled>False</maxRateEnabled>
  <remuxEnabled>True</remuxEnabled>
  <downloadLocation>Z:/$HOME/Vidéos/Captvty_V3</downloadLocation>
  <maxJobs>0</maxJobs>
  <remuxRecycleEnabled>False</remuxRecycleEnabled>
  <recordingPaddingEnd>0</recordingPaddingEnd>
  <bandwidth>0</bandwidth>
  <windowMetrics>0, 0, 0, 0</windowMetrics>
  <remuxFormats>mp4</remuxFormats>
  <maxJobsEnabled>False</maxJobsEnabled>
  <recordingPaddingStart>0</recordingPaddingStart>
  <recordingPaddingEnabled>False</recordingPaddingEnabled>
  <windowState></windowState>
</settings>
FIN
) > "$HOME/.captvty_V3/Captvty.settings"

#Création du fichier desktop pour avoir un raccourci du logiciel dans le menu
test ! -d "$HOME/.local/share/applications" && mkdir "$HOME/.local/share/applications"
(cat << FIN
[Desktop Entry]
Comment[fr_FR]=
Comment=
Exec=env WINEPREFIX="$HOME/.wine_captvty_V3" wine $HOME/.captvty_V3/Captvty.exe
GenericName[fr_FR]=Regarder et enregistrer la tv
GenericName=Regarder et enregistrer la tv
Icon=$HOME/.icons/captvty-logo.png
MimeType=
Name[fr_FR]=Captvty V3
Name=Captvty V3
Path=$HOME
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
FIN
) > "$HOME/.local/share/applications/Captvty_V3.desktop"
Avant de tenter une nouvelle installation, 2 questions
-C'est quoi le dépôt tiers ?
-Timeshift est installé aukazou, un retour à la situation précédente, utile ou pas ?
En gros sous Ubuntu, la liste des logiciels disponibles est enregistrée sur des serveurs, ce qu'on appelle des dépôts.
Par défaut sur ton pc tu n'as accès qu'aux dépôts officiel du système. Mais si tu veux ajouter des programmes, tu peux ajoutés des dépôts tiers à ton système pour installer des programmes supplémentaires à ton système, comme Google Chrome ou Team Viewer par exemple.
Voici la page de Wine sur la documentation francophone d'Ubuntu Wine où est expliqué le principe du dépôt de Wine, je t'invite à lire toute la doc.

Pour Timeshift, tu peux toujours, mais pour désinstaller WineHQ, faut retirer les paquets liés à Wine, puis faire un "sudo apt autoremove" puis allez dans la configuration de tes sources logicielles pour retirer le dépôt de Wine ou rentré la ligne de commande suivante : "sudo apt-add-repository --remove 'https://dl.winehq.org/wine-builds/ubuntu/' " et enlevé le raccourci et l'icone en gros ça donne ça :
sudo apt remove winehq-staging wine-staging wine-staging-i386 wine-staging-amd64 winetricks
sudo apt autoremove
sudo apt-add-repository --remove 'https://dl.winehq.org/wine-builds/ubuntu/'
rm -rf "$HOME/.wine_captvty_V3"
rm -rf "$HOME/.captvty_V3"
rm -rf "$HOME/.icons"
rm -rf "$HOME/.local/share/applications/Captvty_V3.desktop"
à copier ligne par ligne dans un terminal.
Nouvelle tentative.cette fois l'installation va à son terme.
Lancement depuis l’icône, le sablier tourne, le cpu s'active quelques
secondes, et puis c’est tout.
J'ai loupé une marche ?
Et si tu tapes dans un terminal :
env WINEPREFIX="$HOME/.wine_captvty_V3" wine $HOME/.captvty_V3/Captvty.exe
il se passe quoi ? tu peux écrire le retour ici ?
tu as tapé ton mot de passe au début ?
as-tu eu la fenêtre te demandant de choisir au début ?

sinon j'ai une idée, tape la commande suivante, et choisit Windows 10 puis appliquer puis ok :
env WINEPREFIX="$HOME/.wine_captvty_V3" winecfg
Par défaut Wine est réglé sur windows XP or le programme ne démarre pas sous XP, mais il démarre sur Windows 10.
francois@francois-MS-7091:~$ env WINEPREFIX="$HOME/.wine_captvty_V3" wine $HOME/.captvty_V3/Captvty.exe
000b:fixme:winediag:start_process Wine Staging 4.0-rc3 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"configSections" in state 2
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"sectionGroup" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"section" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"section" in state 6
0009:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.5" not implemented
0009:fixme:mscoree:parse_probing privatePath=L"bin" not implemented
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"loadFromRemoteSources" in state 4
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"userSettings" in state 2
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"Captvty.Properties.Settings" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"setting" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"value" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"entityFramework" in state 2
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"defaultConnectionFactory" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"parameters" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"parameter" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"providers" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"provider" in state 6
0009:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"provider" in state 6

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at _R9._iMA (System.EventArgs ) [0x0000c] in <2db55612fd40495aadb46e8761ea536c>:0 
  at System.Windows.Forms.Control.UpdateBounds (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Int32 clientWidth, System.Int32 clientHeight) [0x000da] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.UpdateBounds (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height) [0x0004a] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.SetBoundsCoreInternal (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x00110] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.SetBoundsCore (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStrip.SetBoundsCore (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStripDropDown.SetBoundsCore (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.SetBoundsInternal (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x0008a] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.SetBounds (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x00038] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.set_Size (System.Drawing.Size value) [0x00025] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStripDropDown.OnLayout (System.Windows.Forms.LayoutEventArgs e) [0x00184] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.PerformLayout (System.Windows.Forms.Control affectedControl, System.String affectedProperty) [0x0005a] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.PerformLayout () [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.ResumeLayout (System.Boolean performLayout) [0x00062] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.ResumeLayout () [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStrip..ctor (System.Windows.Forms.ToolStripItem[] items) [0x00125] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStrip..ctor () [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStripDropDown..ctor () [0x00016] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at _R9.set_Bounds (System.Drawing.Rectangle value) [0x00026] in <2db55612fd40495aadb46e8761ea536c>:0 
  at (wrapper remoting-invoke-with-check) _R9:.ctor (System.Windows.Forms.Control)
  at _pjA._Ii (System.Windows.Forms.Control ) [0x0004d] in <2db55612fd40495aadb46e8761ea536c>:0 
  at _7s..ctor () [0x0009d] in <2db55612fd40495aadb46e8761ea536c>:0 
  at _IU..ctor () [0x00000] in <2db55612fd40495aadb46e8761ea536c>:0 
  at (wrapper remoting-invoke-with-check) _IU:.ctor ()
  at _pSA._rB () [0x00287] in <2db55612fd40495aadb46e8761ea536c>:0 
  at _pSA..ctor () [0x000e3] in <2db55612fd40495aadb46e8761ea536c>:0 
  at (wrapper remoting-invoke-with-check) _pSA:.ctor ()
  at _LP._a9 () [0x00165] in <2db55612fd40495aadb46e8761ea536c>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at _R9._iMA (System.EventArgs ) [0x0000c] in <2db55612fd40495aadb46e8761ea536c>:0 
  at System.Windows.Forms.Control.UpdateBounds (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Int32 clientWidth, System.Int32 clientHeight) [0x000da] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.UpdateBounds (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height) [0x0004a] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.SetBoundsCoreInternal (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x00110] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.SetBoundsCore (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStrip.SetBoundsCore (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStripDropDown.SetBoundsCore (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.SetBoundsInternal (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x0008a] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.SetBounds (System.Int32 x, System.Int32 y, System.Int32 width, System.Int32 height, System.Windows.Forms.BoundsSpecified specified) [0x00038] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.set_Size (System.Drawing.Size value) [0x00025] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStripDropDown.OnLayout (System.Windows.Forms.LayoutEventArgs e) [0x00184] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.PerformLayout (System.Windows.Forms.Control affectedControl, System.String affectedProperty) [0x0005a] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.PerformLayout () [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.ResumeLayout (System.Boolean performLayout) [0x00062] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.Control.ResumeLayout () [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStrip..ctor (System.Windows.Forms.ToolStripItem[] items) [0x00125] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStrip..ctor () [0x00000] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at System.Windows.Forms.ToolStripDropDown..ctor () [0x00016] in <dfcf5e19b3744f6abc3507fe9dffa1dd>:0 
  at _R9.set_Bounds (System.Drawing.Rectangle value) [0x00026] in <2db55612fd40495aadb46e8761ea536c>:0 
  at (wrapper remoting-invoke-with-check) _R9:.ctor (System.Windows.Forms.Control)
  at _pjA._Ii (System.Windows.Forms.Control ) [0x0004d] in <2db55612fd40495aadb46e8761ea536c>:0 
  at _7s..ctor () [0x0009d] in <2db55612fd40495aadb46e8761ea536c>:0 
  at _IU..ctor () [0x00000] in <2db55612fd40495aadb46e8761ea536c>:0 
  at (wrapper remoting-invoke-with-check) _IU:.ctor ()
  at _pSA._rB () [0x00287] in <2db55612fd40495aadb46e8761ea536c>:0 
  at _pSA..ctor () [0x000e3] in <2db55612fd40495aadb46e8761ea536c>:0 
  at (wrapper remoting-invoke-with-check) _pSA:.ctor ()
  at _LP._a9 () [0x00165] in <2db55612fd40495aadb46e8761ea536c>:0 
francois@francois-MS-7091:~$ 
Pas d'amélioration.
Pour le mot de passe, je ne me souviens pas de l'avoir entré
Oui, il y a bien eu un choix proposé au début.

L'installation s’étant, me semblait-il, bien passée, je n'ai pas eu le réflexe d'enregistrer .
tu peux faire :
rm -rf "$HOME/.wine_captvty_V3"
winecfg
choisir windows 7

et relancer le script ?
Moi en mettant par défaut windows 7 ça s'est bien déroulé l'installation de .NET, le problème que tu as est un problème avec l'installation de .NET
attends, faut ajouter une commande au script.

J'ia modifié le script ci-dessus
Tu as modifié le script au # 67, je peux l' utiliser ?
gazimel a écritTu as modifié le script au # 67, je peux l' utiliser ?
oui
C'est pas encore worldwide ok 🙂
env WINEPREFIX="$HOME/.wine_captvty_V3" wine $HOME/.captvty_V3/Captvty.exe
0032:err:ole:CoGetContextToken apartment not initialised

Unhandled Exception: System.TypeInitializationException: The type initializer for '_zz' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Gdip' threw an exception. ---> System.BadImageFormatException: Format incorrect. (Exception from HRESULT: 0x8007000B)
   at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output)
   at System.Drawing.SafeNativeMethods.Gdip.Initialize()
   at System.Drawing.SafeNativeMethods.Gdip..cctor()
   --- End of inner exception stack trace ---
   at System.Drawing.SafeNativeMethods.Gdip.GdipNewPrivateFontCollection(IntPtr& fontCollection)
   at System.Drawing.Text.PrivateFontCollection..ctor()
   at _zz..cctor()
   --- End of inner exception stack trace ---
   at _zz._lJ(Byte[] )
   at _LP._a9()
ça c'était remis en windows xp

si je force windows 7
 env WINEPREFIX="$HOME/.wine_captvty_V3" wine $HOME/.captvty_V3/Captvty.exe
0031:err:ole:CoGetContextToken apartment not initialised
0009:err:eventlog:ReportEventW L"Application: Captvty.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.TypeInitializationException\nStack:\n   at _zz._lJ(Byte[])\n   at _LP._a9()\n"

Unhandled Exception: System.TypeInitializationException: The type initializer for '_zz' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Gdip' threw an exception. ---> System.BadImageFormatException: Format incorrect. (Exception from HRESULT: 0x8007000B)
   at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output)
   at System.Drawing.SafeNativeMethods.Gdip.Initialize()
   at System.Drawing.SafeNativeMethods.Gdip..cctor()
   --- End of inner exception stack trace ---
   at System.Drawing.SafeNativeMethods.Gdip.GdipNewPrivateFontCollection(IntPtr& fontCollection)
   at System.Drawing.Text.PrivateFontCollection..ctor()
   at _zz..cctor()
   --- End of inner exception stack trace ---
   at _zz._lJ(Byte[] )
   at _LP._a9()
wine: Unhandled exception 0xe0434352 in thread 9 at address 0x7b43e1f3 (thread 0009), starting debugger...
Unhandled exception: 0xe0434352 in 32-bit code (0x7b43e1f3).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:006b GS:0063
 EIP:7b43e1f3 ESP:0032ec64 EBP:0032ece8 EFLAGS:00200212(   - --  I   -A- - )
 EAX:7b42a5c1 EBX:00000010 ECX:0032ec90 EDX:0032ed5c
 ESI:00000000 EDI:e0434352
Stack dump:
0x0032ec64:  1e74af95 0186e0b4 0186e0b4 0013a668
0x0032ec74:  00000001 0032ed00 e0434352 00000001
0x0032ec84:  00000000 7b43e1f3 00000005 80131534
0x0032ec94:  00000000 00000000 00000000 00d60000
0x0032eca4:  1e74af05 00000000 0186e0b4 00000005
0x0032ecb4:  00000000 00000000 0013a668 0032ede8
Backtrace:
=>0 0x7b43e1f3 in kernel32 (+0x1e1f3) (0x0032ece8)
  1 0x00e848c7 EntryPoint+0xa2096() in clr (0x0032ed90)
  2 0x00f8015c AttachProfiler+0x2e309() in clr (0x0032eda8)
  3 0x00f8038d AttachProfiler+0x2e53a() in clr (0x0032edd0)
  4 0x00f803bd AttachProfiler+0x2e56a() in clr (0x0032ee04)
  5 0x00f077ee EntryPoint+0x124fbd() in clr (0x0032f2ec)
  6 0x00eb0f4d EntryPoint+0xce71c() in clr (0x0032f35c)
  7 0x00d7bcd5 EntryPoint+0xffffffff() in clr (0x0032f3c4)
  8 0x00d62ae9 EntryPoint+0xffffffff() in clr (0x0032f3f4)
  9 0x03f9a793 (0x0032f418)
  10 0x00d62652 EntryPoint+0xffffffff() in clr (0x0032f424)
  11 0x00d7264f EntryPoint+0xffffffff() in clr (0x0032f478)
  12 0x00d72e95 EntryPoint+0xffffffff() in clr (0x0032f4f0)
  13 0x00e274ec EntryPoint+0x44cbb() in clr (0x0032f61c)
  14 0x00e27610 EntryPoint+0x44ddf() in clr (0x0032f890)
  15 0x00eb1dc4 EntryPoint+0xcf593() in clr (0x0032fd94)
  16 0x00eb1e67 EntryPoint+0xcf636() in clr (0x0032fdf0)
  17 0x00eb1f7a EntryPoint+0xcf749() in clr (0x0032fe30)
  18 0x00eb416a EntryPoint+0xd1939() in clr (0x0032fe6c)
  19 0x1000f5a3 CLRCreateInstance+0xaa3e() in mscoreei (0x0032fea8)
  20 0x79007f16 EntryPoint+0x50c1() in mscoree (0x0032feb8)
  21 0x79004de3 EntryPoint+0x1f8e() in mscoree (0x0032fed8)
  22 0x7b465fdc in kernel32 (+0x45fdb) (0x0032ffd8)
  23 0x7b463d1e in kernel32 (+0x43d1d) (0x0032ffec)
0x7b43e1f3: addl	$12,%esp
Modules:
Module	Address			Debug info	Name (29 modules)
PE	  400000-  91a000	Deferred        captvty
PE	  d60000- 13f2000	Export          clr
PE	 1400000- 14d3000	Deferred        msvcr110_clr0400
PE	 3f00000- 3f6e000	Deferred        clrjit
PE	 6dd0000- 6de2000	Deferred        nlssorting
PE	 7760000- 7a6b000	Deferred        system.data
PE	10000000-1007a000	Export          mscoreei
PE	5e0d0000-5e1a4000	Deferred        diasymreader
PE	77f60000-77fd6000	Deferred        shlwapi
PE	79000000-7904a000	Export          mscoree
PE	7b420000-7b5c6000	Export          kernel32
PE	7bc10000-7bc14000	Deferred        ntdll
PE	f6770000-f6774000	Deferred        ws2_32
PE	f6d80000-f6dc1000	Deferred        crypt32
PE	f6e50000-f6e54000	Deferred        bcrypt
PE	f6e70000-f6e74000	Deferred        rsaenh
PE	f6eb0000-f6eb4000	Deferred        uxtheme
PE	f6ef0000-f6ef3000	Deferred        api-ms-win-core-winrt-roparameterizediid-l1-1-0
PE	f6f00000-f6f03000	Deferred        combase
PE	f6f30000-f6f33000	Deferred        api-ms-win-core-winrt-l1-1-0
PE	f7180000-f7184000	Deferred        winex11
PE	f7210000-f7214000	Deferred        rpcrt4
PE	f72b0000-f72d8000	Deferred        ole32
PE	f7400000-f7404000	Deferred        imm32
PE	f7710000-f7714000	Deferred        version
PE	f7730000-f7817000	Deferred        user32
PE	f7940000-f7944000	Deferred        msvcrt
PE	f79f0000-f79f7000	Deferred        gdi32
PE	f7b30000-f7b34000	Deferred        advapi32
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) Z:\home\guy\.captvty_V3\Captvty.exe
	00000032    0
	00000031    2
	00000030    0
	00000009    0 <==
0000000e services.exe
	0000002e    0
	00000029    0
	00000024    0
	0000001d    0
	00000017    0
	00000016    0
	00000015    0
	00000010    0
	0000000f    0
00000011 mscorsvw.exe
	0000001a    0
	00000019    0
	00000018    0
	00000012    0
00000013 explorer.exe
	0000002d    0
	0000002a    0
	00000023    0
	00000014    0
0000001b winedevice.exe
	00000020    0
	0000001f    0
	0000001e    0
	0000001c    0
00000021 plugplay.exe
	00000026    0
	00000025    0
	00000022    0
00000027 winedevice.exe
	0000002f    0
	0000002c    0
	0000002b    0
	00000028    0
System information:
    Wine build: wine-4.0-rc3 (Debian 4.0~rc3-1)
    Platform: i386
    Version: Windows 7
    Host system: Linux
    Host version: 4.19.0-1-amd64
ça merde pour une question d'affichage gdiplus 🙁
et en supprimant "~/.wine_captvty_V3" et en à la ré-éxécution du script et en choisissant windows 7 au départ, ça ne marche toujours pas ?
et avec cette version là ça marche :
#!/bin/bash

#Installation des paquets nécessaires
zenity --question \
--title "Choix de la version de wine" \
--text "Voulez-vous utiliser la version hq qui nécessite l'ajout d'un dépôt tiers (meilleurs performance) ou la version des dépots d'Ubuntu (problème pour voir la tv en direct) ?"

if [ $? = 0 ]
then
    sudo dpkg --add-architecture i386 
    wget -nc https://dl.winehq.org/wine-builds/winehq.key
    sudo apt-key add winehq.key
    sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
    sudo apt install -y winehq-staging wine-staging winetricks
else
    sudo dpkg --add-architecture i386
    sudo apt install -y wine32 wine-stable winetricks
fi

#Création du prefix wine pour Captvty
export WINEPREFIX="$HOME/.wine_captvty_V3"
export WINEARCH=win32
winecfg
#choisir Windows 7 comme version de Windows.

#Ajout sur le prefix des éléments nécessaires à Captvty
winetricks -q --unattended dotnet45 corefonts comctl32 msls31 gdiplus vcrun2010 ie8 fontsmooth-rgb vlc flash

#Remise à zéro du dossier où est contenu les fichiers du logiciel (en cas de mise à jour)
test -d "$HOME/.captvty_V3" && rm -rf "$HOME/.captvty_V3"
#(Re-)Création du dossier pour le logiciel
mkdir "$HOME/.captvty_V3"

#Récupération du programme proprement dit
wget -q -O- http://v3.captvty.fr/ | egrep -o '\/\/.+?\.zip' | sed 's/\/\//http:\/\//' | xargs wget -O /tmp/Captvty_V3.zip && \
ls -alrt /tmp/Cap*zip && unzip -d  "$HOME/.captvty_V3/" /tmp/Captvty_V3.zip && rm /tmp/Captvty_V3.zip

#Récupération de l'icône
test ! -d "$HOME/.icons" && mkdir "$HOME/.icons"
wget "https://framagit.org/Paullux/captvty-script-installateur-pour-ubuntu/raw/master/captvty-logo.png" -O "$HOME/.icons/captvty-logo.png"

#Création des préférences de Captvty
(cat << FIN
<?xml version="1.0" encoding="utf-8"?>
<settings>
  <maxRateFactor>5</maxRateFactor>
  <playerPaths>C:/Program Files/VideoLAN/VLC/vlc.exe</playerPaths>
  <maxRateEnabled>False</maxRateEnabled>
  <remuxEnabled>True</remuxEnabled>
  <downloadLocation>Z:/$HOME/Vidéos/Captvty_V3</downloadLocation>
  <maxJobs>0</maxJobs>
  <remuxRecycleEnabled>False</remuxRecycleEnabled>
  <recordingPaddingEnd>0</recordingPaddingEnd>
  <bandwidth>0</bandwidth>
  <windowMetrics>0, 0, 0, 0</windowMetrics>
  <remuxFormats>mp4</remuxFormats>
  <maxJobsEnabled>False</maxJobsEnabled>
  <recordingPaddingStart>0</recordingPaddingStart>
  <recordingPaddingEnabled>False</recordingPaddingEnabled>
  <windowState></windowState>
</settings>
FIN
) > "$HOME/.captvty_V3/Captvty.settings"

#Création du fichier desktop pour avoir un raccourci du logiciel dans le menu
test ! -d "$HOME/.local/share/applications" && mkdir "$HOME/.local/share/applications"
(cat << FIN
[Desktop Entry]
Comment[fr_FR]=
Comment=
Exec=env WINEPREFIX="$HOME/.wine_captvty_V3" wine $HOME/.captvty_V3/Captvty.exe
GenericName[fr_FR]=Regarder et enregistrer la tv
GenericName=Regarder et enregistrer la tv
Icon=$HOME/.icons/captvty-logo.png
MimeType=
Name[fr_FR]=Captvty V3
Name=Captvty V3
Path=$HOME
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
FIN
) > "$HOME/.local/share/applications/Captvty_V3.desktop"
????
la Récupération du programme proprement dit est toujours aussi...